Commit 0091c0ae authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 85f88285
......@@ -40,16 +40,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(richedit);
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. */
static BOOL RICHED32_Register(void)
{
......@@ -80,7 +70,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
return RICHED32_Register();
case DLL_PROCESS_DETACH:
return RICHED32_Unregister();
if (lpvReserved) break;
UnregisterClassA(RICHEDIT_CLASS10A, NULL);
break;
}
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment