aboutsummaryrefslogtreecommitdiff
path: root/ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch
blob: 4338e52e5b97e041c99cf019b3607263dde0e8fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

diff -r a29fef4a20fd -r ece6769c0676 src/physfs_platform_windows.c
--- a/src/physfs_platform_windows.c	Wed May 16 19:54:51 2018 -0400
+++ b/src/physfs_platform_windows.c	Wed Oct 03 22:40:57 2018 -0400
@@ -566,7 +566,6 @@
     else
     {
         DWORD psize = 0;
-        WCHAR dummy = 0;
         LPWSTR wstr = NULL;
         BOOL rc = 0;
 
@@ -575,7 +574,7 @@
          *  psize. Also note that the second parameter can't be
          *  NULL or the function fails.
          */
-        rc = pGetDir(accessToken, &dummy, &psize);
+        rc = pGetDir(accessToken, NULL, &psize);
         GOTO_IF(rc, PHYSFS_ERR_OS_ERROR, done);  /* should have failed! */
 
         /* Allocate memory for the profile directory */