mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 19:10:18 +02:00
* access the legacy method table using the correct alignment
This commit is contained in:
parent
bb5b9acbb2
commit
377bc0d311
@ -72,12 +72,20 @@ end;
|
||||
procedure GetMethodList(AClass: TClass; AList: TStrings);
|
||||
type
|
||||
PMethodNameRec = ^TMethodNameRec;
|
||||
TMethodNameRec = packed record
|
||||
TMethodNameRec =
|
||||
{$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}
|
||||
packed
|
||||
{$endif}
|
||||
record
|
||||
name : pshortstring;
|
||||
addr : codepointer;
|
||||
end;
|
||||
|
||||
TMethodNameTable = packed record
|
||||
TMethodNameTable =
|
||||
{$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}
|
||||
packed
|
||||
{$endif}
|
||||
record
|
||||
count : dword;
|
||||
entries : packed array[0..0] of TMethodNameRec;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user