From 4e1bea5b8c519a9ac17b445816d7cfdbc9bc5356 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 9 Oct 2018 07:47:43 +0100 Subject: [PATCH] Put missing return variable declaration in. --- Common/SerialDataController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/SerialDataController.cpp b/Common/SerialDataController.cpp index ad11a4e..5a74d97 100644 --- a/Common/SerialDataController.cpp +++ b/Common/SerialDataController.cpp @@ -207,7 +207,7 @@ int CSerialDataController::readNonblock(unsigned char* buffer, unsigned int leng DWORD bytes = 0UL; DWORD millis = timeout; - res = ::GetOverlappedResultEx(m_handle, &m_readOverlapped, &bytes, millis, FALSE); + BOOL res = ::GetOverlappedResultEx(m_handle, &m_readOverlapped, &bytes, millis, FALSE); if (!res) { DWORD error = ::GetLastError(); if (timeout == 0U && error == ERROR_IO_INCOMPLETE) {