Commit 186bed3d authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

shell32: Properly handle SHGetPathFromIDListW failure (PVS-Studio).

parent b2855505
......@@ -757,9 +757,10 @@ static HRESULT BrsFolder_NewFolder(browse_info *info)
if(FAILED(hr))
return hr;
hr = SHGetPathFromIDListW(info->pidlRet, name);
if(FAILED(hr))
if(!SHGetPathFromIDListW(info->pidlRet, name)) {
hr = E_FAIL;
goto cleanup;
}
len = strlenW(name);
if(len<MAX_PATH)
......
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