Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

TFMXWindowParent.Reparent calls SetWindowLong instead of SetWindowLongPtr

Post Reply
obl918
Posts: 3
Joined: Thu Apr 09, 2020 3:23 pm

TFMXWindowParent.Reparent calls SetWindowLong instead of SetWindowLongPtr

Post 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.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: TFMXWindowParent.Reparent calls SetWindowLong instead of SetWindowLongPtr

Post 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.
Post Reply