チケット #38736

DTM_SETFORMATW incorrectly defined in commctrl.h

登録: 2018-11-09 07:28 最終更新: 2018-11-19 06:37

報告者:
担当者:
チケットの種類:
状況:
完了
コンポーネント:
マイルストーン:
(未割り当て)
優先度:
5 - 中
重要度:
5 - 中
解決法:
修正済み
ファイル:
なし
投票
点数: 0
No votes
0.0% (0/0)
0.0% (0/0)

詳細

Problem: MinGW's w32api header commctrl.h incorrectly defines DTM_SETFORMATW as 0x1050.

The official MSVC++ WinAPI headers define DTM_SETFORMATW as 0x1032, via the expression DTM_FIRST + 50, where DTM_FIRST is 0x1000. This of course translates to the correct value of 0x1032.

I suspect that DTM_SETFORMATW accidentally became 0x1050 in the MinGW header, because of a mental hex addition error.

チケットの履歴 (7 件中 3 件表示)

2018-11-09 07:28 更新者: heisenbug
  • 新しいチケット "DTM_SETFORMATW incorrectly defined in commctrl.h" が作成されました
2018-11-09 07:30 更新者: heisenbug
  • 詳細が更新されました
2018-11-09 08:09 更新者: keith
  • コンポーネントOTHER から WSL に更新されました
  • 担当者(未割り当て) から keith に更新されました
コメント

Reply To heisenbug

I suspect that DTM_SETFORMATW accidentally became 0x1050 in the MinGW header, because of a mental hex addition error.

I've no idea who specified that original definition, nor how they deduced the value -- Microsoft don't document it, other than as the definition in their header file -- but I suspect that you are probably correct.

Thanks for reporting the issue, and thanks for not pushing the Microsoft header file in my face, because I will never look at it directly; I can accept your hint as to how Microsoft may define it, and so correct it for the next WSL release.

2018-11-09 08:49 更新者: heisenbug
コメント

You're welcome.

And I understand. If it helps: I have tested the 0x1032 value and can report that it works as intended.

2018-11-19 01:26 更新者: keith
コメント

Reply To heisenbug

You're welcome. And I understand. If it helps: I have tested the 0x1032 value and can report that it works as intended.

Thanks for that. I've prepared the obvious patch; how would you like me to attribute it, in the ChangeLog?

2018-11-19 01:33 更新者: heisenbug
コメント

Oh that's generous. You can say "reported by Jelle Geerts" if you like! Thanks for asking.

2018-11-19 06:37 更新者: keith
  • 解決法なし から 修正済み に更新されました
  • 状況オープン から 完了 に更新されました
コメント

Fixed by commit #955a4fc.

添付ファイルリスト

添付ファイルはありません

編集

このチケットにコメントを追加するには、ログインが必要です » ログインする