diff --git a/winpr/libwinpr/path/shell.c b/winpr/libwinpr/path/shell.c index 59d93a583..28895cd86 100644 --- a/winpr/libwinpr/path/shell.c +++ b/winpr/libwinpr/path/shell.c @@ -223,7 +223,7 @@ static char* GetPath_SYSTEM_CONFIG_HOME(void) #if defined(WIN32) && !defined(_UWP) WCHAR* wpath = NULL; - if (FAILED(SHGetKnownFolderPath(&FOLDERID_ProgramData, 0, -1, &wpath))) + if (FAILED(SHGetKnownFolderPath(&FOLDERID_ProgramData, 0, (HANDLE)-1, &wpath))) return NULL; if (wpath)