mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 04:56:24 +02:00
Merge pull request #7043 from fgeds/patch-1
control ini filename trimmed to the wrong size
This commit is contained in:
commit
e8f83ab4e8
1 file changed
+1
-1
+1
-1
@@ -414,7 +414,7 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
|
||||
}
|
||||
|
||||
if (wideArgs[i].find(controlsOption) != std::wstring::npos && wideArgs[i].size() > controlsOption.size()) {
|
||||
const std::wstring tempWide = wideArgs[i].substr(configOption.size());
|
||||
const std::wstring tempWide = wideArgs[i].substr(controlsOption.size());
|
||||
const std::string tempStr = ConvertWStringToUTF8(tempWide);
|
||||
std::strncpy(controlsConfigFilename, tempStr.c_str(), MAX_PATH);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user