Use GetOverlappedResult instead of GetOverlappedResultEx for Windows 7.

master
Glenn Maynard 6 years ago
parent 88052ee318
commit 9167c9e0ed
  1. 2
      sdk/Windows/SMXDeviceConnection.cpp

@ -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…
Cancel
Save