mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 16:27:52 +08:00
1225d80d11
Fixes GetUserProfileDirectory issue on Win10 build 1809(+?) See: https://hg.icculus.org/icculus/physfs/rev/ece6769c0676
26 lines
724 B
Diff
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 */
|
|
|
|
|
|
|
|
|