Commit ddb71365 authored by Ralf Habacker's avatar Ralf Habacker Committed by Alexandre Julliard

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

parent 14984a16
...@@ -921,6 +921,7 @@ void manage_desktop( WCHAR *arg ) ...@@ -921,6 +921,7 @@ void manage_desktop( WCHAR *arg )
WCHAR *p = arg; WCHAR *p = arg;
const WCHAR *name = NULL; const WCHAR *name = NULL;
BOOL enable_shell = FALSE; BOOL enable_shell = FALSE;
void (WINAPI *pShellDDEInit)( BOOL ) = NULL;
/* get the rest of the command line (if any) */ /* get the rest of the command line (if any) */
while (*p && !is_whitespace(*p)) p++; while (*p && !is_whitespace(*p)) p++;
...@@ -993,7 +994,6 @@ void manage_desktop( WCHAR *arg ) ...@@ -993,7 +994,6 @@ void manage_desktop( WCHAR *arg )
if (graphics_driver) if (graphics_driver)
{ {
HMODULE shell32; HMODULE shell32;
void (WINAPI *pShellDDEInit)( BOOL );
if (using_root) enable_shell = FALSE; if (using_root) enable_shell = FALSE;
...@@ -1035,6 +1035,8 @@ void manage_desktop( WCHAR *arg ) ...@@ -1035,6 +1035,8 @@ void manage_desktop( WCHAR *arg )
WINE_TRACE( "desktop message loop exiting for hwnd %p\n", hwnd ); WINE_TRACE( "desktop message loop exiting for hwnd %p\n", hwnd );
} }
if (pShellDDEInit) pShellDDEInit( FALSE );
ExitProcess( 0 ); ExitProcess( 0 );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment