Commit 69733d65 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

shell32: Handle string-to-guid conversion errors (Coverity).

parent b49f9f60
......@@ -5334,7 +5334,11 @@ static HRESULT WINAPI knownfolder_GetFolderDefinition(
hr = HRESULT_FROM_WIN32(RegGetValueW(HKEY_LOCAL_MACHINE, knownfolder->registryPath, szParentFolder,
RRF_RT_REG_SZ, NULL, parentGuid, &dwSize));
if(SUCCEEDED(hr))
IIDFromString(parentGuid, &pKFD->fidParent);
{
hr = IIDFromString(parentGuid, &pKFD->fidParent);
if(FAILED(hr))
return hr;
}
get_known_folder_dword(knownfolder->registryPath, szAttributes, &pKFD->dwAttributes);
......
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