comctl32: Prevent double theme closing when WM_DESTROY is called many times.

This commit is contained in:
Piotr Caban 2011-06-27 14:22:40 +02:00 committed by Alexandre Julliard
parent 7d17bc55eb
commit 7e3103199c
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,9 @@ LRESULT CALLBACK THEMING_DialogSubclassProc (HWND hWnd, UINT msg,
case WM_DESTROY:
CloseThemeData ( theme );
return THEMING_CallOriginalClass (hWnd, msg, wParam, lParam);
SetWindowTheme( hWnd, NULL, NULL );
OpenThemeData( hWnd, NULL );
return THEMING_CallOriginalClass (hWnd, msg, wParam, lParam);
case WM_THEMECHANGED:
CloseThemeData ( theme );