From dd5dce2fbb61f8fab15641e4e5a833adfa0814a8 Mon Sep 17 00:00:00 2001 From: ThielHater Date: Thu, 3 Oct 2019 23:12:48 +0200 Subject: [PATCH] fixed a bug in __PHYSFS_platformCalcUserDir() --- src/physfs_platform_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/physfs_platform_windows.c b/src/physfs_platform_windows.c index a490c2f..4a32e9f 100644 --- a/src/physfs_platform_windows.c +++ b/src/physfs_platform_windows.c @@ -575,7 +575,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 */