From 682f3e230a382f72342e43ee8f0c603f211c3314 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 25 Apr 2015 09:08:59 +0200 Subject: [PATCH] - 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. --- src/win32/i_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32/i_system.cpp b/src/win32/i_system.cpp index 5b6a69c63..d25229b67 100644 --- a/src/win32/i_system.cpp +++ b/src/win32/i_system.cpp @@ -1601,7 +1601,7 @@ unsigned int I_MakeRNGSeed() FString I_GetLongPathName(FString shortpath) { static TOptWin32Proc - GetLongPathName("kernel32.dll", "GetLongPathNameW", "GetLongPathNameA"); + GetLongPathName("kernel32.dll", "GetLongPathNameA", NULL); // Doesn't exist on NT4 if (GetLongPathName == NULL)