https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bac45efe5d163a199536c…
commit bac45efe5d163a199536cbe00a65f80c59c8fbde
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sun Sep 13 15:03:24 2020 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Oct 4 19:34:20 2020 +0200
[SHELL32][BROWSEUI] Fix usage of ILGetDisplayNameEx
---
dll/win32/browseui/travellog.cpp | 2 +-
dll/win32/shell32/CFolder.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dll/win32/browseui/travellog.cpp b/dll/win32/browseui/travellog.cpp
index 275ec52ed89..cb14139f4f5 100644
--- a/dll/win32/browseui/travellog.cpp
+++ b/dll/win32/browseui/travellog.cpp
@@ -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;
diff --git a/dll/win32/shell32/CFolder.cpp b/dll/win32/shell32/CFolder.cpp
index 3421ecbcc12..b3854a2a8c7 100644
--- a/dll/win32/shell32/CFolder.cpp
+++ b/dll/win32/shell32/CFolder.cpp
@@ -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;