From 7d194a8a62a5b1c3b9fcb415d0d239bff1c736f1 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 3 Oct 2018 22:40:57 -0400 Subject: [PATCH] windows: Workaround GetUserProfileDirectory's API change in Win10 build 1809. (transplanted from ece6769c0676c2d4e8a5893a1acebd0f65456817) --- src/physfs_platform_windows.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/physfs_platform_windows.c b/src/physfs_platform_windows.c index e777235d..7235f2ac 100644 --- a/src/physfs_platform_windows.c +++ b/src/physfs_platform_windows.c @@ -566,7 +566,6 @@ char *__PHYSFS_platformCalcUserDir(void) else { DWORD psize = 0; - WCHAR dummy = 0; LPWSTR wstr = NULL; BOOL rc = 0; @@ -575,7 +574,7 @@ char *__PHYSFS_platformCalcUserDir(void) * 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 */