mirror of
https://github.com/reactos/reactos.git
synced 2025-04-05 13:11:22 +00:00
[COMCTL32] Unregister some classes that were registered.
This should help fix some crashes.
This commit is contained in:
parent
85bbd69cae
commit
ffae49deaf
7 changed files with 48 additions and 3 deletions
|
@ -2104,8 +2104,8 @@ void BUTTON_Register(void)
|
|||
|
||||
|
||||
#ifdef __REACTOS__
|
||||
void BUTTON_Unregister()
|
||||
void BUTTON_Unregister(void)
|
||||
{
|
||||
UnregisterClassW(WC_BUTTONW, NULL);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -231,6 +231,12 @@ static void UnregisterControls(BOOL bV6)
|
|||
else
|
||||
{
|
||||
BUTTON_Unregister();
|
||||
COMBO_Unregister ();
|
||||
COMBOLBOX_Unregister ();
|
||||
EDIT_Unregister ();
|
||||
LISTBOX_Unregister ();
|
||||
STATIC_Unregister ();
|
||||
|
||||
TOOLBARv6_Unregister ();
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue