Ver código fonte

Fix SCI_SETSTATUS call.

Martijn Laan 1 ano atrás
pai
commit
9b9c82983e
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      Components/ScintEdit.pas

+ 2 - 1
Components/ScintEdit.pas

@@ -549,9 +549,10 @@ begin
   Result := FDirectStatusFunction(FDirectPtr, Msg, WParam, LParam, ErrorStatus);
 
   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',
       [ErrorStatus, Msg, WParam, LParam, Result]);
-    FDirectStatusFunction(FDirectPtr, SCI_SETSTATUS, 0, 0, ErrorStatus);
   end;
 end;