[COMCTL32] Unregister some classes that were registered.

This should help fix some crashes.
This commit is contained in:
Mark Jansen 2018-08-24 15:59:57 +02:00
parent 85bbd69cae
commit ffae49deaf
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
7 changed files with 48 additions and 3 deletions

View file

@ -2104,8 +2104,8 @@ void BUTTON_Register(void)
#ifdef __REACTOS__
void BUTTON_Unregister()
void BUTTON_Unregister(void)
{
UnregisterClassW(WC_BUTTONW, NULL);
}
#endif
#endif

View file

@ -2158,3 +2158,10 @@ void COMBO_Register(void)
wndClass.lpszClassName = WC_COMBOBOXW;
RegisterClassW(&wndClass);
}
#ifdef __REACTOS__
void COMBO_Unregister(void)
{
UnregisterClassW(WC_COMBOBOXW, NULL);
}
#endif

View file

@ -270,7 +270,12 @@ extern void TREEVIEW_Unregister(void) DECLSPEC_HIDDEN;
extern void UPDOWN_Register(void) DECLSPEC_HIDDEN;
extern void UPDOWN_Unregister(void) DECLSPEC_HIDDEN;
#ifdef __REACTOS__
extern void BUTTON_Unregister();
extern void BUTTON_Unregister(void) DECLSPEC_HIDDEN;
extern void COMBO_Unregister(void) DECLSPEC_HIDDEN;
extern void COMBOLBOX_Unregister(void) DECLSPEC_HIDDEN;
extern void EDIT_Unregister(void) DECLSPEC_HIDDEN;
extern void LISTBOX_Unregister(void) DECLSPEC_HIDDEN;
extern void STATIC_Unregister(void) DECLSPEC_HIDDEN;
extern void TOOLBARv6_Register(void) DECLSPEC_HIDDEN;
extern void TOOLBARv6_Unregister(void) DECLSPEC_HIDDEN;
#endif /* __REACTOS__ */

View file

@ -231,6 +231,12 @@ static void UnregisterControls(BOOL bV6)
else
{
BUTTON_Unregister();
COMBO_Unregister ();
COMBOLBOX_Unregister ();
EDIT_Unregister ();
LISTBOX_Unregister ();
STATIC_Unregister ();
TOOLBARv6_Unregister ();
}

View file

@ -5039,3 +5039,10 @@ void EDIT_Register(void)
wndClass.lpszClassName = WC_EDITW;
RegisterClassW(&wndClass);
}
#ifdef __REACTOS__
void EDIT_Unregister(void)
{
UnregisterClassW(WC_EDITW, NULL);
}
#endif

View file

@ -3081,3 +3081,16 @@ void COMBOLBOX_Register(void)
wndClass.lpszClassName = combolboxW;
RegisterClassW(&wndClass);
}
#ifdef __REACTOS__
void LISTBOX_Unregister(void)
{
UnregisterClassW(WC_LISTBOXW, NULL);
}
void COMBOLBOX_Unregister(void)
{
static const WCHAR combolboxW[] = {'C','o','m','b','o','L','B','o','x',0};
UnregisterClassW(combolboxW, NULL);
}
#endif

View file

@ -791,3 +791,10 @@ void STATIC_Register(void)
wndClass.lpszClassName = WC_STATICW;
RegisterClassW(&wndClass);
}
#ifdef __REACTOS__
void STATIC_Unregister(void)
{
UnregisterClassW(WC_STATICW, NULL);
}
#endif