Jump to content
dummzeuch

Typo in TWMDPI record in Delphi 10 Seattle ?

Recommended Posts

I just found a typo in the TWMDPI record declaration in the Delphi 10 Winapi.Messages unit:

  TWMDpi = record
    Msg: Cardinal;
    MsgFiller: TDWordFiller;
    YDpi: Word;
    XDpi: Word;
    WParamFiller: TDWordFiller;
    ScalledRect: PRECT; // <- here
    Result: LRESULT;
  end;

ScaledRect is misspelled as ScalledRect.

 

I am not sure whether this spelling error was in the original installation or whether I might have changed this declaration by accident (No, that unit is not readonly on my system.) Since this record was introduced with Delphi 10 it might just have been a typo that was corrected in later versions.

 

Could somebody with an unchanged installation please check?

Share this post


Link to post

It seems the typo was not very long lived.

 

Delphi 10 Seattle

image.png.35c0a30bed694a4c199ab51d14524969.png

 

Delphi 10.1 Berlin Update 2

image.png.3dadac89b51a3af23e145be327adcf14.png

  • Thanks 1

Share this post


Link to post

Yes, Delphi 10 was the only version where the code failed to compile. XE8 didn't have that record, in 10.1, latest update, it was correct.

So it really is a bug I'm the sources, not an accidental edit by me.

Thanks for confirming.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×