Skip to content

Commit

Permalink
Win.Dialogs: Added "Result := " in WinMsg func. (bug fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdp committed Aug 21, 2020
1 parent 7100d07 commit 072c178
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Base/JPL.Win.Dialogs.pas
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ implementation

function WinMsg(const Text, Caption: string; Handle: HWND = 0; MBType: DWORD = MB_OK or MB_ICONINFORMATION): integer;
begin
MessageBox(Handle, PChar(Text), PChar(Caption), MBType);
Result := MessageBox(Handle, PChar(Text), PChar(Caption), MBType);
end;

procedure MB(const Text: string; Caption: string = 'Information'; Handle: HWND = 0);
Expand Down Expand Up @@ -68,3 +68,4 @@ function WinMsgQuery(const Text, Caption: string; Handle: HWND = 0; MBType: DWOR

end.


0 comments on commit 072c178

Please sign in to comment.