Commit a05ba2b9 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

shell32: Check error return in get_known_folder_path (Coverity).

parent 3dc66a9d
......@@ -3422,9 +3422,14 @@ static HRESULT get_known_folder_path(
if(hr == S_OK)
{
/* get parent's known folder path (recursive) */
get_known_folder_registry_path(NULL, parentGuid, &parentRegistryPath);
hr = get_known_folder_registry_path(NULL, parentGuid, &parentRegistryPath);
if(!SUCCEEDED(hr)) return hr;
hr = get_known_folder_path(parentGuid, parentRegistryPath, &parentPath);
if(!SUCCEEDED(hr)) {
HeapFree(GetProcessHeap(), 0, parentRegistryPath);
return hr;
}
lstrcatW(path, parentPath);
lstrcatW(path, sBackslash);
......
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