comctl32: Prevent double theme closing when WM_DESTROY is called many times.
This commit is contained in:
parent
7d17bc55eb
commit
7e3103199c
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue