Use GetOverlappedResult instead of GetOverlappedResultEx for Windows 7.

This commit is contained in:
Glenn Maynard 2019-01-08 17:02:25 -06:00
parent 88052ee318
commit 9167c9e0ed

View File

@ -136,7 +136,7 @@ void SMX::SMXDeviceConnection::CheckReads(wstring &error)
// Block until the cancellation completes. This should happen quickly. // Block until the cancellation completes. This should happen quickly.
DWORD unused; DWORD unused;
GetOverlappedResultEx(m_hDevice->value(), &m_pCurrentCommand->m_Overlapped, &unused, INFINITE, false); GetOverlappedResult(m_hDevice->value(), &m_pCurrentCommand->m_Overlapped, &unused, true);
m_aPendingCommands.push_front(m_pCurrentCommand); m_aPendingCommands.push_front(m_pCurrentCommand);
m_pCurrentCommand = nullptr; m_pCurrentCommand = nullptr;