vcpkg/ports/physfs/physfs.3.0.1.GetUserProfileDirectory.patch

26 lines
724 B
Diff
Raw Normal View History

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