diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 773a220f9d0..42e3405857d 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -2183,6 +2183,8 @@ BOOL msi_dialog_register_class( void ) void msi_dialog_unregister_class( void ) { DestroyWindow( hMsiHiddenWindow ); + hMsiHiddenWindow = NULL; UnregisterClassW( szMsiDialogClass, NULL ); + UnregisterClassW( szMsiHiddenWindow, NULL ); uiThreadId = 0; }