Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
windows: Workaround GetUserProfileDirectory's API change in Win10 bui…
…ld 1809.

(transplanted from ece6769c0676c2d4e8a5893a1acebd0f65456817)
  • Loading branch information
icculus committed Oct 4, 2018
1 parent 8ce294a commit 7d194a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/physfs_platform_windows.c
Expand Up @@ -566,7 +566,6 @@ char *__PHYSFS_platformCalcUserDir(void)
else
{
DWORD psize = 0;
WCHAR dummy = 0;
LPWSTR wstr = NULL;
BOOL rc = 0;

Expand All @@ -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 */
Expand Down

0 comments on commit 7d194a8

Please sign in to comment.