diff --git a/bin/WinLauncher/WinLauncher.exe b/bin/WinLauncher/WinLauncher.exe index 26b1789f3b5f..fdf3779d4630 100644 Binary files a/bin/WinLauncher/WinLauncher.exe and b/bin/WinLauncher/WinLauncher.exe differ diff --git a/bin/WinLauncher/WinLauncher64.exe b/bin/WinLauncher/WinLauncher64.exe index a75bfaa2424e..4666ae7b385d 100644 Binary files a/bin/WinLauncher/WinLauncher64.exe and b/bin/WinLauncher/WinLauncher64.exe differ diff --git a/native/WinLauncher/WinLauncher/WinLauncher.cpp b/native/WinLauncher/WinLauncher/WinLauncher.cpp index d6c81d01b949..39a7a77281f9 100644 --- a/native/WinLauncher/WinLauncher/WinLauncher.cpp +++ b/native/WinLauncher/WinLauncher/WinLauncher.cpp @@ -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))