Skip to content

Commit 2e9914e

Browse files
committed
Fixing the wrong string param type in the ShowMessage routine
1 parent 9b4a054 commit 2e9914e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/vcl/WrapVclDialogs.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ implementation
5353
{ Global Functions }
5454
function ShowMessage_Wrapper(pself, args: PPyObject): PPyObject; cdecl;
5555
var
56-
LMsg: string;
56+
LMsg: PAnsiChar;
5757
begin
5858
with GetPythonEngine do
5959
begin
6060
if PyArg_ParseTuple(args, 's:ShowMessage', @LMsg) <> 0 then
6161
begin
62-
ShowMessage(LMsg);
62+
ShowMessage(string(LMsg));
6363
Result := GetPythonEngine.ReturnNone;
6464
end else
6565
Result := nil;

0 commit comments

Comments
 (0)