From bacc78da24fa53933a799f8665419190af36e64d Mon Sep 17 00:00:00 2001 From: Alexander Babikov Date: Thu, 14 Apr 2022 06:50:23 +0500 Subject: [PATCH] Fix instances of narrow string literals being used where wide ones should be used --- src/win/win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/win.c b/src/win/win.c index e3c3be905..18f3a1697 100644 --- a/src/win/win.c +++ b/src/win/win.c @@ -913,10 +913,10 @@ plat_init_rom_paths() { wchar_t appdata_dir[1024] = { L'\0' }; - if (_wgetenv("LOCALAPPDATA") && _wgetenv("LOCALAPPDATA")[0] != L'\0') { + if (_wgetenv(L"LOCALAPPDATA") && _wgetenv(L"LOCALAPPDATA")[0] != L'\0') { char appdata_dir_a[1024] = { '\0' }; size_t len = 0; - wcsncpy(appdata_dir, _wgetenv("LOCALAPPDATA"), 1024); + wcsncpy(appdata_dir, _wgetenv(L"LOCALAPPDATA"), 1024); len = wcslen(appdata_dir); if (appdata_dir[len - 1] != L'\\') { appdata_dir[len] = L'\\';