diff --git a/sdrbase/util/serialutil.cpp b/sdrbase/util/serialutil.cpp index 183718efd..4eb4d2c50 100644 --- a/sdrbase/util/serialutil.cpp +++ b/sdrbase/util/serialutil.cpp @@ -38,7 +38,6 @@ void SerialUtil::getComPorts(std::vector& comPorts, const std::stri (void) regexStr; TCHAR lpTargetPath[5000]; // buffer to store the path of the COMPORTS DWORD test; - bool gotPort = 0; // in case the port is not found char portName[100]; @@ -53,12 +52,6 @@ void SerialUtil::getComPorts(std::vector& comPorts, const std::stri { comPorts.push_back(std::string(portName)); } - - if (::GetLastError() == ERROR_INSUFFICIENT_BUFFER) - { - lpTargetPath[10000]; // in case the buffer got filled, increase size of the buffer. - continue; - } } } #elif defined(__linux__)