mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 10:26:40 +00:00
WIN32: Fix bug in SHGetFolderPathFunc fallback code
This commit is contained in:
parent
ff5700cd44
commit
cdcdb26ac8
@ -78,7 +78,7 @@ HRESULT SHGetFolderPathFunc(HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags,
|
||||
#endif
|
||||
);
|
||||
if (pSHGetSpecialFolderPath)
|
||||
return pSHGetSpecialFolderPath(hwnd, pszPath, csidl & !CSIDL_FLAG_MASK, csidl & CSIDL_FLAG_CREATE) ? S_OK : E_FAIL;
|
||||
return pSHGetSpecialFolderPath(hwnd, pszPath, csidl & ~CSIDL_FLAG_MASK, csidl & CSIDL_FLAG_CREATE) ? S_OK : E_FAIL;
|
||||
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user