* fixed get_caller_frame() for win16 (on that platform, bp is incremented by

one, before pushing, to indicate a far call, so it has to be aligned by 2
  again, after reading)

git-svn-id: trunk@37657 -
This commit is contained in:
nickysn 2017-12-01 23:00:47 +00:00
parent 06e025b779
commit bc8c1ea1bc

View File

@ -601,6 +601,9 @@ asm
jz @@Lgnf_null
xchg ax, si // 1 byte shorter than a mov
seges lodsw
{$ifdef WIN16}
and al, $FE
{$endif WIN16}
mov dx, es
@@Lgnf_null:
{$endif FPC_X86_DATA_NEAR}