Skip to content

Commit 9b9c829

Browse files
committed
Fix SCI_SETSTATUS call.
1 parent f066b3d commit 9b9c829

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Components/ScintEdit.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,10 @@ function TScintEdit.Call(Msg: Cardinal; WParam: Longint; LParam: Longint): Longi
549549
Result := FDirectStatusFunction(FDirectPtr, Msg, WParam, LParam, ErrorStatus);
550550

551551
if ErrorStatus <> 0 then begin
552+
var Dummy: Integer;
553+
FDirectStatusFunction(FDirectPtr, SCI_SETSTATUS, 0, 0, Dummy);
552554
ErrorFmt('Error status %d returned after Call(%u, %d, %d) = %d',
553555
[ErrorStatus, Msg, WParam, LParam, Result]);
554-
FDirectStatusFunction(FDirectPtr, SCI_SETSTATUS, 0, 0, ErrorStatus);
555556
end;
556557
end;
557558

0 commit comments

Comments
 (0)