Browse Source

Use "L" to force wide literal string.

If multi-byte character set is chosen, TEXT() does not produce a wide string,
causing compilation errors.
rude 12 years ago
parent
commit
2149ecdf44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/filesystem/physfs/Filesystem.cpp

+ 1 - 1
src/modules/filesystem/physfs/Filesystem.cpp

@@ -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, '\\', '/');
 	}