- fixed: We should not try calling unicode functions on ASCII strings.

Should ZDoom ever switch to unicode I_GetLongPathName will have to be adjusted, but for now it must call GetLongPathNameA, not GetLongPathNameW.
This commit is contained in:
Christoph Oelckers 2015-04-25 09:08:59 +02:00
parent 75471df787
commit 682f3e230a

View file

@ -1601,7 +1601,7 @@ unsigned int I_MakeRNGSeed()
FString I_GetLongPathName(FString shortpath)
{
static TOptWin32Proc<DWORD (WINAPI*)(LPCTSTR, LPTSTR, DWORD)>
GetLongPathName("kernel32.dll", "GetLongPathNameW", "GetLongPathNameA");
GetLongPathName("kernel32.dll", "GetLongPathNameA", NULL);
// Doesn't exist on NT4
if (GetLongPathName == NULL)