Explorar o código

* Should compile without c operators

git-svn-id: trunk@26869 -
michael %!s(int64=11) %!d(string=hai) anos
pai
achega
3a34a371b3
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      rtl/win32/serial.pp

+ 3 - 3
rtl/win32/serial.pp

@@ -420,13 +420,13 @@ begin
   repeat
     if mSec < quantum then begin
       Sleep(mSec);
-      mSec := 0
+      mSec := 0;
     end else begin
       Sleep(quantum);
-      mSec -= quantum
+      mSec := msec-quantum;
     end;
     if (mSec > 0) and Assigned(SerialIdle) then
-      SerialIdle(Handle)
+      SerialIdle(Handle);
   until mSec <= 0;
   ClearCommBreak(Handle);
   if sync then