win32: sync vs2010 projects and wrong param when starting the bootloader
[deb_libcec.git] / src / lib / LibCEC.cpp
index 0eca6a2c5e9b5eaf2cb1f8f24ed7c81bc5e0e33d..3230e684d9779aaa21e068932b9fb2be0ec0d274 100644 (file)
@@ -510,7 +510,7 @@ bool CECStartBootloader(void)
   {
     CUSBCECAdapterCommunication comm(NULL, deviceList[0].comm);
     CTimeout timeout(10000);
-    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)
     {
       comm.Close();
       CEvent::Sleep(500);