Author: hbelusca
Date: Sun Jun  5 14:10:14 2016
New Revision: 71533

URL: http://svn.reactos.org/svn/reactos?rev=71533&view=rev
Log:
[SHELL32]: In some rare cases, pressing Alt-F4 in ReactOS when the desktop was 
on focus, just removed the desktop icons. The underlying "progman" window was 
indeed killed. Sending a WM_CLOSE message to it should not close it directly, 
but instead prompt the user with the Shutdown dialog. Tests on Windows show 
that it's indeed the case.
This fix completes r65557.
CORE-4351 CORE-8864

Modified:
    trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp

Modified: trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp?rev=71533&r1=71532&r2=71533&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp    
[iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shelldesktop/CDesktopBrowser.cpp    
[iso-8859-1] Sun Jun  5 14:10:14 2016
@@ -536,6 +536,9 @@
                 break;
             }
 
+            case WM_CLOSE:
+                return pThis->_NotifyTray(TWM_DOEXITWINDOWS, 0, 0);
+
             case WM_EXPLORER_OPEN_NEW_WINDOW:
                 TRACE("Proxy Desktop message 1035 received.\n");
                 SHOnCWMCommandLine((HANDLE)lParam);


Reply via email to