mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 09:50:52 +00:00
riched32: Don't bother to unregister classes at process exit.
This commit is contained in:
parent
85f8828560
commit
0091c0ae96
1 changed files with 3 additions and 11 deletions
|
@ -40,16 +40,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(richedit);
|
||||||
extern LRESULT WINAPI RichEdit10ANSIWndProc(HWND, UINT, WPARAM, LPARAM);
|
extern LRESULT WINAPI RichEdit10ANSIWndProc(HWND, UINT, WPARAM, LPARAM);
|
||||||
|
|
||||||
|
|
||||||
/* Unregisters the window class. */
|
|
||||||
static BOOL RICHED32_Unregister(void)
|
|
||||||
{
|
|
||||||
TRACE("\n");
|
|
||||||
|
|
||||||
UnregisterClassA(RICHEDIT_CLASS10A, NULL);
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Registers the window class. */
|
/* Registers the window class. */
|
||||||
static BOOL RICHED32_Register(void)
|
static BOOL RICHED32_Register(void)
|
||||||
{
|
{
|
||||||
|
@ -80,7 +70,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||||
return RICHED32_Register();
|
return RICHED32_Register();
|
||||||
|
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
return RICHED32_Unregister();
|
if (lpvReserved) break;
|
||||||
|
UnregisterClassA(RICHEDIT_CLASS10A, NULL);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue