From ab06f1c66f401e4736eae4d55577f9810289ee21 Mon Sep 17 00:00:00 2001 From: Ralf Habacker 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 --- 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