瀏覽代碼

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 13 年之前
父節點
當前提交
2149ecdf44
共有 1 個文件被更改,包括 1 次插入1 次删除
  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, '\\', '/');
 	}