mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[SHELL32] Correctly compare pidls for SHBrowseForFolder BFFM_SETEXPANDED (#7499)
_ILIsEqualSimple just does a memcmp and that does not work for all items. Should improve shell change notifications (CORE-13950).
This commit is contained in:
@@ -4608,9 +4608,9 @@ HRESULT WINAPI CDefView::GetAdvise(DWORD *pAspects, DWORD *pAdvf, IAdviseSink **
|
||||
|
||||
HRESULT STDMETHODCALLTYPE CDefView::QueryService(REFGUID guidService, REFIID riid, void **ppvObject)
|
||||
{
|
||||
if (IsEqualIID(guidService, SID_IShellBrowser))
|
||||
if (IsEqualIID(guidService, SID_IShellBrowser) && m_pShellBrowser)
|
||||
return m_pShellBrowser->QueryInterface(riid, ppvObject);
|
||||
else if(IsEqualIID(guidService, SID_IFolderView))
|
||||
else if (IsEqualIID(guidService, SID_IFolderView))
|
||||
return QueryInterface(riid, ppvObject);
|
||||
|
||||
return E_NOINTERFACE;
|
||||
|
||||
Reference in New Issue
Block a user