windows/SDL_sysfilesystem.c: fix SHGetKnownFolderPath calling convention

This commit is contained in:
Ozkan Sezer 2023-05-08 11:55:32 +03:00
parent b92eaddbbd
commit ef2ad2b0c6
1 changed files with 1 additions and 2 deletions

View File

@ -179,7 +179,7 @@ char *SDL_GetPrefPath(const char *org, const char *app)
char *SDL_GetPath(SDL_Folder folder)
{
typedef HRESULT (*pfnSHGetKnownFolderPath)(REFGUID /* REFKNOWNFOLDERID */, DWORD, HANDLE, PWSTR*);
typedef HRESULT (WINAPI *pfnSHGetKnownFolderPath)(REFGUID /* REFKNOWNFOLDERID */, DWORD, HANDLE, PWSTR*);
HMODULE lib = LoadLibrary(L"Shell32.dll");
pfnSHGetKnownFolderPath pSHGetKnownFolderPath = NULL;
char *retval = NULL;
@ -331,7 +331,6 @@ done:
}
return retval;
}
#endif /* SDL_FILESYSTEM_WINDOWS */
#ifdef SDL_FILESYSTEM_XBOX