From b55ed059e80fdf452d466f5341bb95c02627eb8f Mon Sep 17 00:00:00 2001 From: fgeds Date: Sun, 2 Nov 2014 20:38:00 +0100 Subject: [PATCH] line 417, trimmed control filename to the size of settings filename --- Windows/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/main.cpp b/Windows/main.cpp index e19eb41318..01325bf316 100644 --- a/Windows/main.cpp +++ b/Windows/main.cpp @@ -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); }