exe launchers should use Toolbox version of a product VM options that was run from the Toolbox.

This commit is contained in:
Vladimir.Orlov
2018-08-01 13:51:46 +03:00
parent bd82114426
commit 793d07aa00
3 changed files with 2 additions and 2 deletions
Binary file not shown.
Binary file not shown.
@@ -536,10 +536,10 @@ bool LoadVMOptions()
}
}
std::wstring::size_type pos = module.find_last_of(L"\\bin\\", -1);
std::wstring::size_type pos = module.find_last_of('\\');
if (pos > 0)
{
files.push_back(module.substr(0, pos - 5) + L".vmoptions");
files.push_back(module.substr(0, pos - 4) + L".vmoptions");
}
if (LoadString(hInst, IDS_VM_OPTIONS_PATH, buffer, _MAX_PATH))