Commit fb2f84ec authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

Call WriteOutProfiles16 to make sure that last profile gets written.

parent f314e5e7
......@@ -85,15 +85,12 @@ static BOOL process_attach(void)
*/
BOOL WINAPI MAIN_KernelInit( HINSTANCE hinst, DWORD reason, LPVOID reserved )
{
static int process_count;
switch(reason)
{
case DLL_PROCESS_ATTACH:
if (!process_count++) return process_attach();
break;
return process_attach();
case DLL_PROCESS_DETACH:
--process_count;
WriteOutProfiles16();
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