winapi-rs icon indicating copy to clipboard operation
winapi-rs copied to clipboard

CONTEXT should be aligned to 16-byte boundary

Open endeav0r opened this issue 5 years ago • 1 comments

winapi::um::winnt::CONTEXT needs to be aligned to a 16-byte boundary. Here is a forum post referring to this issue I have confirmed this on my system.

There is a FIXME for this struct in the winapi source. What is required to align structs with the existing struct!{} macro?

endeav0r avatar Sep 26 '20 00:09 endeav0r

This will be fixed in winapi 0.4 when the minimum Rust version is bumped to support #[repr(align(N))]

retep998 avatar Sep 26 '20 02:09 retep998