mirror of
https://github.com/reactos/reactos.git
synced 2025-04-24 23:50:24 +00:00
[SHELL32][BROWSEUI] Fix usage of ILGetDisplayNameEx
This commit is contained in:
parent
b3f2ba0522
commit
bac45efe5d
2 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ HRESULT CTravelEntry::GetToolTipText(IUnknown *punk, LPWSTR pwzText) const
|
|||
{
|
||||
HRESULT hResult;
|
||||
|
||||
hResult = ILGetDisplayNameEx(NULL, fPIDL, pwzText, ILGDN_NORMAL) ? S_OK : S_FALSE;
|
||||
hResult = ILGetDisplayNameEx(NULL, fPIDL, pwzText, ILGDN_NORMAL) ? S_OK : E_FAIL;
|
||||
if (FAILED_UNEXPECTEDLY(hResult))
|
||||
return hResult;
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ HRESULT STDMETHODCALLTYPE CFolder::get_Title(BSTR *pbs)
|
|||
return E_POINTER;
|
||||
|
||||
WCHAR path[MAX_PATH+2] = {0};
|
||||
HRESULT hr = ILGetDisplayNameExW(NULL, m_idlist, path, ILGDN_INFOLDER);
|
||||
HRESULT hr = ILGetDisplayNameExW(NULL, m_idlist, path, ILGDN_INFOLDER) ? S_OK : E_FAIL;
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
return hr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue