Explorar el Código

Fix SCI_SETSTATUS call.

Martijn Laan hace 1 año
padre
commit
9b9c82983e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      Components/ScintEdit.pas

+ 2 - 1
Components/ScintEdit.pas

@@ -549,9 +549,10 @@ begin
   Result := FDirectStatusFunction(FDirectPtr, Msg, WParam, LParam, ErrorStatus);
   Result := FDirectStatusFunction(FDirectPtr, Msg, WParam, LParam, ErrorStatus);
 
 
   if ErrorStatus <> 0 then begin
   if ErrorStatus <> 0 then begin
+    var Dummy: Integer;
+    FDirectStatusFunction(FDirectPtr, SCI_SETSTATUS, 0, 0, Dummy);
     ErrorFmt('Error status %d returned after Call(%u, %d, %d) = %d',
     ErrorFmt('Error status %d returned after Call(%u, %d, %d) = %d',
       [ErrorStatus, Msg, WParam, LParam, Result]);
       [ErrorStatus, Msg, WParam, LParam, Result]);
-    FDirectStatusFunction(FDirectPtr, SCI_SETSTATUS, 0, 0, ErrorStatus);
   end;
   end;
 end;
 end;