Put missing return variable declaration in.

pull/1/head
Jonathan Naylor 8 years ago
parent c315c69a18
commit 4e1bea5b8c

@ -207,7 +207,7 @@ int CSerialDataController::readNonblock(unsigned char* buffer, unsigned int leng
DWORD bytes = 0UL; DWORD bytes = 0UL;
DWORD millis = timeout; DWORD millis = timeout;
res = ::GetOverlappedResultEx(m_handle, &m_readOverlapped, &bytes, millis, FALSE); BOOL res = ::GetOverlappedResultEx(m_handle, &m_readOverlapped, &bytes, millis, FALSE);
if (!res) { if (!res) {
DWORD error = ::GetLastError(); DWORD error = ::GetLastError();
if (timeout == 0U && error == ERROR_IO_INCOMPLETE) { if (timeout == 0U && error == ERROR_IO_INCOMPLETE) {

Loading…
Cancel
Save

Powered by TurnKey Linux.