* in the Win64 ABI all const record parameters are passed by reference

This commit is contained in:
Sven/Sarah Barth 2024-11-04 23:06:01 +01:00
parent 8498eacdeb
commit d9ec917586

View File

@ -173,7 +173,7 @@ begin
else
val := PtrUInt(aArgs[i].ValueRef);
tkRecord:
if td^.RecSize in [1, 2, 4, 8] then
if (td^.RecSize in [1, 2, 4, 8]) and not (pfConst in aArgs[i].Info.ParamFlags) then
val := PPtrUInt(aArgs[i].ValueRef)^
else
val := PtrUInt(aArgs[i].ValueRef);