Use GetOverlappedResult instead of GetOverlappedResultEx for Windows 7.
This commit is contained in:
parent
88052ee318
commit
9167c9e0ed
@ -136,7 +136,7 @@ void SMX::SMXDeviceConnection::CheckReads(wstring &error)
|
||||
|
||||
// Block until the cancellation completes. This should happen quickly.
|
||||
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_pCurrentCommand = nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user