[SHELL32] Respect the REST_NODRIVES restriction (#7907)

This is the "My Computer => Drives" setting in TweakUI.
This commit is contained in:
Whindmar Saksit
2025-04-21 23:16:59 +02:00
committed by GitHub
parent fb6191b71a
commit 73b019a390
3 changed files with 26 additions and 10 deletions

View File

@@ -2923,8 +2923,8 @@ LRESULT CDefView::OnChangeNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &
ERR("hLock == NULL\n");
return FALSE;
}
TRACE("(%p)(%p,%p,%p)\n", this, Pidls[0], Pidls[1], lParam);
lEvent &= ~SHCNE_INTERRUPT;
TRACE("(%p)(%p,%p,%p) %#x\n", this, Pidls[0], Pidls[1], lParam, lEvent);
if (_DoFolderViewCB(SFVM_FSNOTIFY, (WPARAM)Pidls, lEvent) == S_FALSE)
{
@@ -2934,7 +2934,6 @@ LRESULT CDefView::OnChangeNotify(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &
// Translate child IDLs.
// SHSimpleIDListFromPathW creates fake PIDLs (lacking some attributes)
lEvent &= ~SHCNE_INTERRUPT;
HRESULT hr;
PITEMID_CHILD child0 = NULL, child1 = NULL;
CComHeapPtr<ITEMIDLIST_RELATIVE> pidl0Temp, pidl1Temp;