ddraw: Remove the process counter.

This commit is contained in:
Stefan Dösinger 2006-10-09 15:29:05 +02:00 committed by Alexandre Julliard
parent 3543a070ff
commit 4ff712c938
1 changed files with 53 additions and 61 deletions

View File

@ -812,8 +812,6 @@ DllMain(HINSTANCE hInstDLL,
DWORD Reason,
void *lpv)
{
static LONG counter = 0;
TRACE("(%p,%lx,%p)\n", hInstDLL, Reason, lpv);
if (Reason == DLL_PROCESS_ATTACH)
{
@ -865,13 +863,8 @@ DllMain(HINSTANCE hInstDLL,
}
DisableThreadLibraryCalls(hInstDLL);
TRACE("Attach counter: %ld\n", InterlockedIncrement(&counter));
}
else if (Reason == DLL_PROCESS_DETACH)
{
TRACE("Attach counter: %ld\n", InterlockedDecrement(&counter));
if(counter == 0)
{
if(!list_empty(&global_ddraw_list))
{
@ -934,7 +927,6 @@ DllMain(HINSTANCE hInstDLL,
}
}
}
}
return TRUE;
}