* use the VWideChar field to retrieve the WideChar value instead of VChar to fix usage on big endian systems

This commit is contained in:
Sven/Sarah Barth 2023-09-21 22:41:19 +02:00
parent 8fb803bba6
commit 6bf7e4c0d3

View File

@ -1960,7 +1960,7 @@ begin
case aValue.VType of
vtInteger: Result:=aValue.VInteger;
vtBoolean: Result:=aValue.VBoolean;
vtWideChar: TValue.Make(@aValue.VChar,System.TypeInfo(WideChar),Result);
vtWideChar: TValue.Make(@aValue.VWideChar,System.TypeInfo(WideChar),Result);
vtInt64: Result:=aValue.VInt64^;
vtQWord: Result:=aValue.VQWord^;
vtChar: TValue.Make(@aValue.VChar,System.TypeInfo(AnsiChar),Result);