mirror of https://github.com/libsdl-org/SDL
windows/SDL_sysfilesystem.c: fix SHGetKnownFolderPath calling convention
This commit is contained in:
parent
b92eaddbbd
commit
ef2ad2b0c6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue