mirror of
https://github.com/reactos/wine.git
synced 2024-12-04 17:56:51 +00:00
shell32: Improve error handling in ParseName() (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5773203afd
commit
4c160b6f8c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user