Call WriteOutProfiles16 to make sure that last profile gets written.

This commit is contained in:
Uwe Bonnes 2000-08-21 03:33:31 +00:00 committed by Alexandre Julliard
parent f314e5e76b
commit fb2f84ec20

View File

@ -85,15 +85,12 @@ static BOOL process_attach(void)
*/ */
BOOL WINAPI MAIN_KernelInit( HINSTANCE hinst, DWORD reason, LPVOID reserved ) BOOL WINAPI MAIN_KernelInit( HINSTANCE hinst, DWORD reason, LPVOID reserved )
{ {
static int process_count;
switch(reason) switch(reason)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
if (!process_count++) return process_attach(); return process_attach();
break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
--process_count; WriteOutProfiles16();
break; break;
} }
return TRUE; return TRUE;