mirror of
https://github.com/nefarius/ViGEmBus.git
synced 2025-08-10 00:52:17 +00:00
Finished Bus_PlugInRequestCleanUpEvtTimerFunc implementation
This commit is contained in:
26
sys/Driver.c
26
sys/Driver.c
@@ -626,19 +626,19 @@ Bus_PlugInRequestCleanUpEvtTimerFunc(
|
||||
"PDO (serial = %d) age: %llu",
|
||||
pPluginData->Serial, ellapsed);
|
||||
|
||||
//if (Serial == curSerial)
|
||||
//{
|
||||
// WdfRequestComplete(curRequest, Status);
|
||||
//
|
||||
// WdfCollectionRemove(pFdoData->PendingPluginRequests, curRequest);
|
||||
//
|
||||
// TraceEvents(TRACE_LEVEL_INFORMATION,
|
||||
// TRACE_DRIVER,
|
||||
// "Removed item with serial: %d",
|
||||
// curSerial);
|
||||
//
|
||||
// break;
|
||||
//}
|
||||
if (ellapsed > 500)
|
||||
{
|
||||
WdfRequestComplete(curRequest, STATUS_SUCCESS);
|
||||
|
||||
WdfCollectionRemove(pFdoData->PendingPluginRequests, curRequest);
|
||||
|
||||
TraceEvents(TRACE_LEVEL_INFORMATION,
|
||||
TRACE_DRIVER,
|
||||
"Removed item with serial: %d",
|
||||
pPluginData->Serial);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
WdfSpinLockRelease(pFdoData->PendingPluginRequestsLock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user