shell32: Use FAILED instead of !SUCCEEDED.
This commit is contained in:
parent
8b3f3ef821
commit
5ea23d616b
|
@ -688,8 +688,7 @@ static HRESULT WINAPI ISF_ControlPanel_fnGetDisplayNameOf(IShellFolder2 * iface,
|
|||
PathAddBackslashW(wszPath);
|
||||
len = lstrlenW(wszPath);
|
||||
|
||||
if (!SUCCEEDED
|
||||
(SHELL32_GetDisplayNameOfChild(iface, pidl, dwFlags | SHGDN_INFOLDER, wszPath + len, MAX_PATH + 1 - len)))
|
||||
if (FAILED(SHELL32_GetDisplayNameOfChild(iface, pidl, dwFlags | SHGDN_INFOLDER, wszPath + len, MAX_PATH + 1 - len)))
|
||||
return E_OUTOFMEMORY;
|
||||
if (!WideCharToMultiByte(CP_ACP, 0, wszPath, -1, szPath, MAX_PATH, NULL, NULL))
|
||||
wszPath[0] = '\0';
|
||||
|
|
|
@ -350,13 +350,13 @@ HRESULT WINAPI SHCreateShellItem(LPCITEMIDLIST pidlParent,
|
|||
{
|
||||
IPersistFolder2* ppf2Parent;
|
||||
|
||||
if (!SUCCEEDED(IPersistFolder2_QueryInterface(psfParent, &IID_IPersistFolder2, (void**)&ppf2Parent)))
|
||||
if (FAILED(IPersistFolder2_QueryInterface(psfParent, &IID_IPersistFolder2, (void**)&ppf2Parent)))
|
||||
{
|
||||
FIXME("couldn't get IPersistFolder2 interface of parent\n");
|
||||
return E_NOINTERFACE;
|
||||
}
|
||||
|
||||
if (!SUCCEEDED(IPersistFolder2_GetCurFolder(ppf2Parent, &temp_parent)))
|
||||
if (FAILED(IPersistFolder2_GetCurFolder(ppf2Parent, &temp_parent)))
|
||||
{
|
||||
FIXME("couldn't get parent PIDL\n");
|
||||
IPersistFolder2_Release(ppf2Parent);
|
||||
|
|
Loading…
Reference in New Issue