shell32: Handle string-to-guid conversion errors (Coverity).
This commit is contained in:
parent
b49f9f609a
commit
69733d65e8
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue