Use "L" to force wide literal string.

If multi-byte character set is chosen, TEXT() does not produce a wide string,
causing compilation errors.
This commit is contained in:
rude
2012-11-18 10:53:17 +01:00
parent 31f98ebf52
commit 2149ecdf44
+1 -1
View File
@@ -236,7 +236,7 @@ const char *Filesystem::getAppdataDirectory()
#ifdef LOVE_WINDOWS
if (appdata.empty())
{
wchar_t *w_appdata = _wgetenv(TEXT("APPDATA"));
wchar_t *w_appdata = _wgetenv(L"APPDATA");
appdata = to_utf8(w_appdata);
replace_char(appdata, '\\', '/');
}