Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark dialog templates as repr(packed) #884

Merged
merged 1 commit into from
May 8, 2020
Merged

Conversation

Osspial
Copy link
Contributor

@Osspial Osspial commented May 7, 2020

Both DLGTEMPLATE and DLGITEMTEMPLATE are defined with a packed(2) alignment in winuser.h in order to cut off some padding bytes from the end. This PR adds a standard packed alignment attribute to remove the padding bytes without bumping the MSRV. Those should be changed to packed(2) once we move to a Rust version that supports packed(N).

@retep998 retep998 merged commit b43649c into retep998:0.3 May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants