-
Notifications
You must be signed in to change notification settings - Fork 1k
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
RawInput: Buffer pointer should be aligned on a DWORD (32-bit) boundary #1953
base: docs
Are you sure you want to change the base?
Conversation
@DJm00n : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Microsoft is saying that the starting address of each RAWINPUT
structure within the buffer must be aligned to a pointer boundary. The pointer itself doesn’t need special alignment.
Memory allocated with malloc
or new
will already handle this, so it's not clear why this warning is here. My guess is someone got burned after using a custom allocator (e.g., on say, the Xbox) and added a note for future developers.
Buffer pointer should be aligned on a DWORD (32-bit) boundary.