ddraw: Remove the process counter.
This commit is contained in:
parent
3543a070ff
commit
4ff712c938
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue