riched32: Don't bother to unregister classes at process exit.

This commit is contained in:
Alexandre Julliard 2013-05-14 11:20:49 +02:00
parent 85f8828560
commit 0091c0ae96

View file

@ -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;
} }