Commit 2e99817a authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

wininet: Fix the return value check of SHGetSpecialFolderPathW in…

wininet: Fix the return value check of SHGetSpecialFolderPathW in URLCacheContainers_CreateDefaults. It returns a BOOL, not an HRESULT.
parent f8f9dbbb
...@@ -543,7 +543,7 @@ void URLCacheContainers_CreateDefaults(void) ...@@ -543,7 +543,7 @@ void URLCacheContainers_CreateDefaults(void)
WCHAR wszMutexName[MAX_PATH]; WCHAR wszMutexName[MAX_PATH];
int path_len, suffix_len; 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); ERR("Couldn't get path for default container %u\n", i);
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment