[PATCH] explorer: Fix atom leaks caused by not releasing DDE interface

Ralf Habacker ralf.habacker at freenet.de
Thu Nov 29 02:25:05 CST 2018


From ab06f1c66f401e4736eae4d55577f9810289ee21 Mon Sep 17 00:00:00 2001
From: Ralf Habacker <ralf.habacker at freenet.de>
Date: Tue, 27 Nov 2018 10:37:43 +0100
Subject: [PATCH] explorer: Fix atom leaks caused by not releasing DDE interface

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46210

Signed-off-by: Ralf Habacker <ralf.habacker at freenet.de>
---
 programs/explorer/desktop.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c
index d802bc3465..81c91090f9 100644
--- a/programs/explorer/desktop.c
+++ b/programs/explorer/desktop.c
@@ -1035,6 +1035,16 @@ void manage_desktop( WCHAR *arg )
         WINE_TRACE( "desktop message loop exiting for hwnd %p\n", hwnd );
     }
 
+    if (hwnd && graphics_driver)
+    {
+        HMODULE shell32;
+        void (WINAPI *pShellDDEInit)( BOOL );
+        if ((shell32 = LoadLibraryA( "shell32.dll" )) &&
+            (pShellDDEInit = (void *)GetProcAddress( shell32, (LPCSTR)188)))
+        {
+            pShellDDEInit( FALSE );
+        }
+    }
     ExitProcess( 0 );
 }
 
-- 
2.13.7



More information about the wine-devel mailing list