fix non-windows compilation, maybe. could be bugged, didnt test

This commit is contained in:
zeromus 2023-05-28 14:31:50 -04:00
parent 3511e14ac6
commit 1bde1c28ac
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ void PathInfo::ReadKeyW(char *pathToRead, const wchar_t *key)
strcpy(pathToRead,wcstombs((std::wstring)wpath).c_str());
#else
//since the variables are all intialized in this file they all use MAX_PATH
GetDefaultPath(pathToRead, key, MAX_PATH);
GetDefaultPath(pathToRead, wcstombs((std::wstring)key).c_str(), MAX_PATH);
#endif
}