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

This commit is contained in:
Nikolay Sivov 2015-07-06 09:09:06 +03:00 committed by Alexandre Julliard
parent b49f9f609a
commit 69733d65e8
1 changed files with 5 additions and 1 deletions

View File

@ -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);