Commits

rude  committed a4d5166

Use "L" to force wide literal string.

If multi-byte character set is chosen, TEXT() does not produce a wide string,
causing compilation errors.

  • Participants
  • Parent commits 869a29c

Comments (0)

Files changed (1)

File src/modules/filesystem/physfs/Filesystem.cpp

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