Skip to content

Commit

Permalink
Merge pull request #818 from cyanea-bt/windows_paths
Browse files Browse the repository at this point in the history
Windows Port: Fix empty defaults for path settings
  • Loading branch information
zeromus authored Jul 23, 2024
2 parents 12ed7dd + 5754425 commit 8e77a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desmume/src/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void PathInfo::ReadKeyW(char *pathToRead, const wchar_t *key)
if (wcscmp(wpath, key) == 0) {
//since the variables are all intialized in this file they all use MAX_PATH
char temppath[MAX_PATH];
temppath[0] = 0;
strcpy(temppath, wcstombs((std::wstring)wpath).c_str());
GetDefaultPath(temppath, wcstombs((std::wstring)key).c_str(), MAX_PATH);
wcscpy(wpath,mbstowcs((std::string)temppath).c_str());
}
Expand Down

0 comments on commit 8e77a8d

Please sign in to comment.