From 5ac10a9ed450343dbf2d43c3f03403d7535e97f2 Mon Sep 17 00:00:00 2001 From: Alexey Ushakov Date: Sat, 17 Jun 2017 02:38:32 +0300 Subject: [PATCH] IDEA-174588 Switch JDK action does not work Corrected location of idea.jdk file --- native/WinLauncher/WinLauncher/WinLauncher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/WinLauncher/WinLauncher/WinLauncher.cpp b/native/WinLauncher/WinLauncher/WinLauncher.cpp index 3f36b23d6227..c67b99c389c8 100644 --- a/native/WinLauncher/WinLauncher/WinLauncher.cpp +++ b/native/WinLauncher/WinLauncher/WinLauncher.cpp @@ -155,7 +155,7 @@ bool FindJVMInSettings() { if (LoadString(hInst, IDS_VM_OPTIONS_PATH, buffer, _MAX_PATH)) { ExpandEnvironmentStrings(buffer, copy, _MAX_PATH - 1); std::wstring path(copy); - path += L"\\config" + module.substr(module.find_last_of('\\')) + L".jdk"; + path += module.substr(module.find_last_of('\\')) + L".jdk"; FILE *f = _tfopen(path.c_str(), _T("rt")); if (!f) return false;