[5/5] explorer: Don't bother shutting down an empty desktop.

Vincent Povirk madewokherd at gmail.com
Tue Feb 18 17:06:34 CST 2014


-------------- next part --------------
From b7880afb400b555ff8d345675406c9eb792e52dc Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 18 Feb 2014 16:36:16 -0600
Subject: [PATCH 5/6] explorer: Don't bother shutting down an empty desktop.

---
 programs/explorer/desktop.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c
index a8ccd14..dc61484 100644
--- a/programs/explorer/desktop.c
+++ b/programs/explorer/desktop.c
@@ -510,7 +510,8 @@ static LRESULT WINAPI desktop_wnd_proc( HWND hwnd, UINT message, WPARAM wp, LPAR
         switch(wp & 0xfff0)
         {
         case SC_CLOSE:
-            ExitWindows( 0, 0 );
+            if (!DestroyWindow( hwnd ))
+                ExitWindows( 0, 0 );
             break;
         case SC_SCREENSAVE:
             return start_screensaver();
-- 
1.8.3.2



More information about the wine-patches mailing list