IDEA-174588 Switch JDK action does not work

Corrected location of idea.jdk file
This commit is contained in:
Alexey Ushakov
2017-06-17 02:41:15 +03:00
parent 9bd6f13634
commit 5ac10a9ed4
@@ -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;