Finished new notification implementation for XusbPdo.cpp

This commit is contained in:
Benjamin Höglinger-Stelzer
2020-11-23 22:39:41 +01:00
parent c3c4047cfa
commit 97fd8fd9fa
2 changed files with 58 additions and 10 deletions

View File

@@ -1175,6 +1175,14 @@ void ViGEm::Bus::Core::EmulationTargetPDO::EvtWdfIoPendingNotificationQueueState
)
{
const auto pThis = static_cast<EmulationTargetPDO*>(Context);
//
// No buffer available to answer the request with, leave queued
//
if (DMF_BufferQueue_Count(pThis->_UsbInterruptOutBufferQueue) == 0)
{
return;
}
pThis->ProcessPendingNotification(Queue);
}