File 0002-explorer-Fix-atom-leaks-caused-by-not-releasing-DDE-in.txt of Package wine

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

Signed-off-by: Ralf Habacker <ralf.habacker@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
openSUSE Build Service is sponsored by