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,6 +54,8 @@ LRESULT CALLBACK THEMING_DialogSubclassProc (HWND hWnd, UINT msg,
case WM_DESTROY:
CloseThemeData ( theme );
SetWindowTheme( hWnd, NULL, NULL );
OpenThemeData( hWnd, NULL );
return THEMING_CallOriginalClass (hWnd, msg, wParam, lParam);
case WM_THEMECHANGED: