Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Fix alignments of structs XX_KEYDOWN
Browse files Browse the repository at this point in the history
These structs have special alignments.
  • Loading branch information
qchikara committed May 22, 2016
1 parent d269faf commit e458ee1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/sys/windows/commctrl.d
Expand Up @@ -2850,7 +2850,9 @@ static if (_WIN32_IE >= 0x400) {
}
alias NMIPADDRESS* LPNMIPADDRESS;

align (1)
struct NMLVKEYDOWN {
align (1):
NMHDR hdr;
WORD wVKey;
UINT flags;
Expand Down Expand Up @@ -3956,7 +3958,9 @@ struct NMLVDISPINFOW {
alias NMLVDISPINFOW* LPNMLVDISPINFOW;
alias NMLVDISPINFOW LV_DISPINFOW;

align (1)
struct LV_KEYDOWN {
align (1):
NMHDR hdr;
WORD wVKey;
UINT flags;
Expand Down Expand Up @@ -4147,7 +4151,9 @@ static if (_WIN32_IE >= 0x400) {
alias NMTVGETINFOTIPW* LPNMTVGETINFOTIPW;
}

align (1)
struct TV_KEYDOWN {
align (1):
NMHDR hdr;
WORD wVKey;
UINT flags;
Expand Down Expand Up @@ -4224,7 +4230,9 @@ struct TCHITTESTINFO {
alias TCHITTESTINFO* LPTCHITTESTINFO, LPTC_HITTESTINFO;
alias TCHITTESTINFO TC_HITTESTINFO;

align (1)
struct TC_KEYDOWN {
align (1):
NMHDR hdr;
WORD wVKey;
UINT flags;
Expand Down

0 comments on commit e458ee1

Please sign in to comment.