aboutsummaryrefslogtreecommitdiff
path: root/ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch
diff options
context:
space:
mode:
authorGriffin Downs <grdowns@microsoft.com>2019-02-27 16:44:17 -0800
committerGriffin Downs <grdowns@microsoft.com>2019-02-27 16:44:17 -0800
commit1908903508bf057ad05d8a344e5bc55477944cb6 (patch)
tree2a23595f1e7d8cc9a6358bfd44a00eb7368d8a1b /ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch
parentb0a2ff18c9f2c9131aed131f5bf0d97c0e23da8e (diff)
parent8564602d06d7c4ce236f96a4f0f3ba7c2d769cb0 (diff)
downloadvcpkg-1908903508bf057ad05d8a344e5bc55477944cb6.tar.gz
vcpkg-1908903508bf057ad05d8a344e5bc55477944cb6.zip
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/grdowns/4802
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 */
+
+
+
+