vcpkg/ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch
past-due 1225d80d11 [physfs] Fix Win10 GetUserProfileDirectory() problem
Fixes GetUserProfileDirectory issue on Win10 build 1809(+?)
See: https://hg.icculus.org/icculus/physfs/rev/ece6769c0676
2018-11-28 18:33:10 -05:00

26 lines
724 B
Diff

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 */