mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-31 20:52:09 +00:00 
			
		
		
		
	[c-host] windows: don't attach to the debuggers console
This commit is contained in:
		| @@ -160,7 +160,7 @@ static BOOL WINAPI CtrlHandler(DWORD dwCtrlType) | ||||
| int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) | ||||
| { | ||||
|   /* this is a bit of a hack but without this --help will produce no output in a windows command prompt */ | ||||
|   if (AttachConsole(ATTACH_PARENT_PROCESS)) | ||||
|   if (!IsDebuggerPresent() && AttachConsole(ATTACH_PARENT_PROCESS)) | ||||
|   { | ||||
|     HANDLE std_err = GetStdHandle(STD_ERROR_HANDLE); | ||||
|     HANDLE std_out = GetStdHandle(STD_OUTPUT_HANDLE); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Geoffrey McRae
					Geoffrey McRae