From b92f1431a56664e23a188c63d6aee95f42978f5d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 7 Mar 2005 11:04:35 +0000 Subject: [PATCH] Fixed DLL_PROCESS_DETACH handler to actually unregister the window classes. --- dlls/riched20/editor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 5ac4b186490..6a0b4d88c5e 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -962,8 +962,10 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) break; case DLL_PROCESS_DETACH: - UnregisterClassW(wszClassName, hinstDLL); - UnregisterClassA("RichEdit20A", hinstDLL); + UnregisterClassW(wszClassName, 0); + UnregisterClassW(wszClassName50, 0); + UnregisterClassA("RichEdit20A", 0); + UnregisterClassA("RichEdit50A", 0); HeapDestroy (me_heap); me_heap = NULL; break;