From 1bde1c28acd1b3b065a7ecb0df17ff15015f7897 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 28 May 2023 14:31:50 -0400 Subject: [PATCH] fix non-windows compilation, maybe. could be bugged, didnt test --- desmume/src/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/path.cpp b/desmume/src/path.cpp index 71eaf782c..c2c2b883d 100644 --- a/desmume/src/path.cpp +++ b/desmume/src/path.cpp @@ -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 }