Fixed DLL_PROCESS_DETACH handler to actually unregister the window

classes.
This commit is contained in:
Alexandre Julliard 2005-03-07 11:04:35 +00:00
parent 627aeca259
commit b92f1431a5
1 changed files with 4 additions and 2 deletions

View File

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