https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2a32094aa03aece50fbc16a371986a9664216d83

commit 2a32094aa03aece50fbc16a371986a9664216d83
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Sat Apr 11 09:27:45 2020 +0900
Commit:     Katayama Hirofumi MZ <[email protected]>
CommitDate: Sat Apr 11 09:27:45 2020 +0900

    [SHELL32] Check pidl->mkid.cb == 0 at CChangeNotify::ShouldNotify
    
    CORE-13950
---
 dll/win32/shell32/shelldesktop/CChangeNotify.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dll/win32/shell32/shelldesktop/CChangeNotify.cpp 
b/dll/win32/shell32/shelldesktop/CChangeNotify.cpp
index af4825cdaf8..0692ff86989 100644
--- a/dll/win32/shell32/shelldesktop/CChangeNotify.cpp
+++ b/dll/win32/shell32/shelldesktop/CChangeNotify.cpp
@@ -550,6 +550,8 @@ BOOL CChangeNotify::ShouldNotify(LPDELITICKET pTicket, 
LPNOTIFSHARE pShared)
         return TRUE;
 
     pidl = (LPITEMIDLIST)((LPBYTE)pShared + pShared->ibPidl);
+    if (pidl->mkid.cb == 0 && pShared->fRecursive)
+        return TRUE;
 
     if (pTicket->ibOffset1)
     {

Reply via email to