Ralf Habacker : explorer: Fix atom leaks caused by not releasing DDE interface.
Alexandre Julliard
julliard at winehq.org
Sun Mar 3 13:21:33 CST 2019
Module: wine
Branch: oldstable
Commit: 17c15aa183c63b627a3008320aaa35f0931e9f00
URL: https://source.winehq.org/git/wine.git/?a=commit;h=17c15aa183c63b627a3008320aaa35f0931e9f00
Author: Ralf Habacker <ralf.habacker at freenet.de>
Date: Tue Nov 27 10:37:43 2018 +0100
explorer: Fix atom leaks caused by not releasing DDE interface.
Signed-off-by: Ralf Habacker <ralf.habacker at freenet.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit ddb713653b329f72e4b91beffef60e72c8a61574)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
programs/explorer/desktop.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c
index a2d9e1a..fb72175 100644
--- a/programs/explorer/desktop.c
+++ b/programs/explorer/desktop.c
@@ -922,6 +922,7 @@ void manage_desktop( WCHAR *arg )
WCHAR *p = arg;
const WCHAR *name = NULL;
BOOL enable_shell = FALSE;
+ void (WINAPI *pShellDDEInit)( BOOL ) = NULL;
/* get the rest of the command line (if any) */
while (*p && !is_whitespace(*p)) p++;
@@ -993,7 +994,6 @@ void manage_desktop( WCHAR *arg )
if (graphics_driver)
{
HMODULE shell32;
- void (WINAPI *pShellDDEInit)( BOOL );
if (using_root) enable_shell = FALSE;
@@ -1035,6 +1035,8 @@ void manage_desktop( WCHAR *arg )
WINE_TRACE( "desktop message loop exiting for hwnd %p\n", hwnd );
}
+ if (pShellDDEInit) pShellDDEInit( FALSE );
+
ExitProcess( 0 );
}
More information about the wine-cvs
mailing list