diff --git a/native/WinLauncher/WinLauncher/WinLauncher.cpp b/native/WinLauncher/WinLauncher/WinLauncher.cpp index 8c1fa3f0a858..0d4cf2154176 100644 --- a/native/WinLauncher/WinLauncher/WinLauncher.cpp +++ b/native/WinLauncher/WinLauncher/WinLauncher.cpp @@ -124,8 +124,8 @@ bool FindJVMInEnvVar(const char* envVarName, bool& result) else { char buf[_MAX_PATH]; - sprintf_s(buf, "The environment variable %s (with the value of %s) does not point to a valid JVM installation", - envVarValue, jvmPath); + sprintf_s(buf, "The environment variable %s (with the value of %s) does not point to a valid JVM installation.", + envVarName, envVarValue); MessageBoxA(NULL, buf, "Error Launching IntelliJ Platform", MB_OK); result = false; } @@ -553,7 +553,6 @@ bool CheckSingleInstance() { hFileMapping = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, FILE_MAPPING_SIZE, mappingName.c_str()); - hSingleInstanceWatcherThread = CreateThread(NULL, 0, SingleInstanceThread, NULL, 0, NULL); return true; } else @@ -704,6 +703,9 @@ int APIENTRY _tWinMain(HINSTANCE hInstance, if (!LoadVMOptions()) return 1; if (!LoadJVMLibrary()) return 1; if (!CreateJVM()) return 1; + + hSingleInstanceWatcherThread = CreateThread(NULL, 0, SingleInstanceThread, NULL, 0, NULL); + if (!RunMainClass()) return 1; jvm->DestroyJavaVM(); @@ -716,3 +718,4 @@ int APIENTRY _tWinMain(HINSTANCE hInstance, return 0; } + \ No newline at end of file diff --git a/native/WinLauncher/WinLauncher/WinLauncher.vcxproj b/native/WinLauncher/WinLauncher/WinLauncher.vcxproj index 6656ec535a2a..acbee35bbb63 100644 --- a/native/WinLauncher/WinLauncher/WinLauncher.vcxproj +++ b/native/WinLauncher/WinLauncher/WinLauncher.vcxproj @@ -64,7 +64,7 @@ true - C:\Java\jdk1.6.0_41\include;C:\Java\jdk1.6.0_41\include\win32;$(IncludePath) + C:\Java\jdk1.6.0_43\include;C:\Java\jdk1.6.0_43\include\win32;$(IncludePath) true @@ -72,7 +72,7 @@ false - C:\Java\jdk1.6.0_41\include;C:\Java\jdk1.6.0_41\include\win32;$(IncludePath) + C:\Java\jdk1.6.0_43\include;C:\Java\jdk1.6.0_43\include\win32;$(IncludePath) false