Page 1 of 1

TFMXWindowParent.Reparent calls SetWindowLong instead of SetWindowLongPtr

Posted: Wed Apr 15, 2020 7:40 pm
by obl918
TFMXWindowParent.Reparent calls SetWindowLong but it should call SetWindowLongPtr.

I think with current Delphi releases this is already fixed by SetWindowLong being redirected to SetWindowLongPtr though, so it's not a huge deal.

Re: TFMXWindowParent.Reparent calls SetWindowLong instead of SetWindowLongPtr

Posted: Sat Apr 18, 2020 9:31 am
by salvadordf
Thanks for reporting this! :)

Since that code is in the Firemonkey components I guess we dodged that bullet.

If someone knows the first Delphi version that started redirecting SetWindowLong to SetWindowLongPtr I will add a conditional directive to fix this issue in previous versions.