aboutsummaryrefslogtreecommitdiff
path: root/ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch
diff options
context:
space:
mode:
authorPhil Christensen <philc@microsoft.com>2018-12-06 15:06:28 -0800
committerPhil Christensen <philc@microsoft.com>2018-12-06 15:06:28 -0800
commit7347305e8459fcc78553a9f88196e0d93eb0a8fe (patch)
treeac9eee9ff267c6a71a83249bed7a94f02b00d9a5 /ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch
parented9357a5aafea7192932b5874264bd103fc61255 (diff)
parent63c1b2628e958f8e02356411f032941c0c2f3bbb (diff)
downloadvcpkg-7347305e8459fcc78553a9f88196e0d93eb0a8fe.tar.gz
vcpkg-7347305e8459fcc78553a9f88196e0d93eb0a8fe.zip
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/philc/3425
Diffstat (limited to 'ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch')
-rw-r--r--ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch b/ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch
new file mode 100644
index 000000000..4338e52e5
--- /dev/null
+++ b/ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch
@@ -0,0 +1,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 */
+
+
+
+