mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
- 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:
parent
75471df787
commit
682f3e230a
1 changed files with 1 additions and 1 deletions
|
@ -1601,7 +1601,7 @@ unsigned int I_MakeRNGSeed()
|
||||||
FString I_GetLongPathName(FString shortpath)
|
FString I_GetLongPathName(FString shortpath)
|
||||||
{
|
{
|
||||||
static TOptWin32Proc<DWORD (WINAPI*)(LPCTSTR, LPTSTR, DWORD)>
|
static TOptWin32Proc<DWORD (WINAPI*)(LPCTSTR, LPTSTR, DWORD)>
|
||||||
GetLongPathName("kernel32.dll", "GetLongPathNameW", "GetLongPathNameA");
|
GetLongPathName("kernel32.dll", "GetLongPathNameA", NULL);
|
||||||
|
|
||||||
// Doesn't exist on NT4
|
// Doesn't exist on NT4
|
||||||
if (GetLongPathName == NULL)
|
if (GetLongPathName == NULL)
|
||||||
|
|
Loading…
Reference in a new issue