The definition value of DTM_SETFORMATW is incorrect. - #22712
Conversation
|
Thanks for your pull request and interest in making D better, @Rayerd! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#22712" |
| DTM_SETMCFONT = 0x1009, | ||
| DTM_GETMCFONT = 0x100a, | ||
| DTM_SETFORMATW = 0x1050 | ||
| DTM_SETFORMATW = 0x1032 |
There was a problem hiding this comment.
if the original is defined as DTM_FIRST + 50 just write that so that it is a direct translation.
There was a problem hiding this comment.
Is there code in druntime that generates core.sys.windows.* from MinGW? Also, is that MinGW code in this repository?
There was a problem hiding this comment.
IIRC the mingw headers were converted to D more or less manually. Ancient mingw versions contain this bug, but also were formatted like this, while newer (fixed) versions use expressions similar to the SDK. So I think using the old style should be ok.
|
I am trying to add the required test for this PR, but I am having trouble with the repository structure. When I clone both my fork (Rayerd/dmd) and the upstream dlang/dmd repository, the I tried the following:
However, none of these resulted in a Because of this, I cannot add the required test for this PR. Any help would be greatly appreciated. |
I suspect you are using some wrapper repositiory, maybe dlangvs? I suspect this has bit-rotten, haven't tried it in a while. The dmd repository does not have any submodules, but expects phobos to sit in the same directory as dmd. Tests are in compiler/test and druntime/test, but as long as there is no actual comparison to some reference header files implemented, there is no point in verifying this single definition. Please rebase instead of merging master, though. |
The definition value of DTM_SETFORMATW is incorrect.
core.sys.windows.commctrl.d

Windows Kits 10.0.26100.0
