explorer: Fix atom leaks caused by not releasing DDE interface.

Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Ralf Habacker 2018-11-27 10:37:43 +01:00 committed by Alexandre Julliard
parent 14984a169a
commit ddb713653b
1 changed files with 3 additions and 1 deletions

View File

@ -921,6 +921,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 );
}