Commit 4c160b6f authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

shell32: Improve error handling in ParseName() (Coverity).

parent 5773203a
...@@ -1536,10 +1536,10 @@ static HRESULT WINAPI FolderImpl_ParseName(Folder3 *iface, BSTR name, FolderItem ...@@ -1536,10 +1536,10 @@ static HRESULT WINAPI FolderImpl_ParseName(Folder3 *iface, BSTR name, FolderItem
return S_FALSE; return S_FALSE;
if ((hr = IShellFolder2_GetDisplayNameOf(This->folder, pidl, SHGDN_FORPARSING, &strret)) == S_OK) if ((hr = IShellFolder2_GetDisplayNameOf(This->folder, pidl, SHGDN_FORPARSING, &strret)) == S_OK)
StrRetToBSTR(&strret, pidl, &path); hr = StrRetToBSTR(&strret, pidl, &path);
ILFree(pidl); ILFree(pidl);
if (FAILED(hr)) if (hr != S_OK)
return S_FALSE; return S_FALSE;
hr = FolderItem_Constructor(This, path, item); hr = FolderItem_Constructor(This, path, item);
......
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