Windows 1809 GetUserProfileDirectory failure workaround
authoralfadur
Sat, 06 Oct 2018 01:24:27 +0300
changeset 13870 a966b1914792
parent 13869 bd796e4d8920
child 13871 5df16be168ff
Windows 1809 GetUserProfileDirectory failure workaround
misc/libphysfs/platform_windows.c
--- a/misc/libphysfs/platform_windows.c	Sat Oct 06 00:23:41 2018 +0300
+++ b/misc/libphysfs/platform_windows.c	Sat Oct 06 01:24:27 2018 +0300
@@ -435,7 +435,7 @@
         GOTO_MACRO(errcodeFromWinApi(), done);
     else
     {
-        DWORD psize = 0;
+        DWORD psize = 1;
         WCHAR dummy = 0;
         LPWSTR wstr = NULL;
         BOOL rc = 0;