wininet: Fix the return value check of SHGetSpecialFolderPathW in URLCacheContainers_CreateDefaults.
It returns a BOOL, not an HRESULT.
This commit is contained in:
parent
f8f9dbbbe7
commit
2e99817a40
|
@ -543,7 +543,7 @@ void URLCacheContainers_CreateDefaults(void)
|
|||
WCHAR wszMutexName[MAX_PATH];
|
||||
int path_len, suffix_len;
|
||||
|
||||
if (FAILED(SHGetSpecialFolderPathW(NULL, wszCachePath, DefaultContainerData[i].nFolder, TRUE)))
|
||||
if (!SHGetSpecialFolderPathW(NULL, wszCachePath, DefaultContainerData[i].nFolder, TRUE))
|
||||
{
|
||||
ERR("Couldn't get path for default container %u\n", i);
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue