win32: sync vs2010 projects and wrong param when starting the bootloader
[deb_libcec.git] / src / lib / CECProcessor.cpp
index e957a371c7a7c00fa2901a8b067c504938a7c80b..a8f40c55709c382f4f6d9dd8efc1b7080b2c4f52 100644 (file)
@@ -1480,7 +1480,7 @@ bool CCECProcessor::StartBootloader(const char *strPort /* = NULL */)
     IAdapterCommunication *comm = new CUSBCECAdapterCommunication(this, strPort);
     CTimeout timeout(10000);
     int iConnectTry(0);
-    while (timeout.TimeLeft() > 0 && (bReturn = comm->Open(NULL, (timeout.TimeLeft() / CEC_CONNECT_TRIES)), true) == false)
+    while (timeout.TimeLeft() > 0 && (bReturn = comm->Open(timeout.TimeLeft() / CEC_CONNECT_TRIES, true)) == false)
     {
       CLibCEC::AddLog(CEC_LOG_ERROR, "could not open a connection (try %d)", ++iConnectTry);
       comm->Close();