Skip to content

Commit

Permalink
Fix SCI_SETSTATUS call.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlaan committed Jun 14, 2024
1 parent f066b3d commit 9b9c829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Components/ScintEdit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,10 @@ function TScintEdit.Call(Msg: Cardinal; WParam: Longint; LParam: Longint): Longi
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;

Expand Down

0 comments on commit 9b9c829

Please sign in to comment.