1
Fork 0

Rollup merge of #127572 - tbu-:pr_debug_event_nonpacked, r=jhpratt

Don't mark `DEBUG_EVENT` struct as `repr(packed)`

That would give it alignment of 1 which is ABI-incompatible with its C definition.
This commit is contained in:
Matthias Krüger 2024-07-11 17:01:37 +02:00 committed by GitHub
commit 6fd955549a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -386,7 +386,7 @@ fn test_interior_nul_in_env_value_is_error() {
fn test_creation_flags() {
use crate::os::windows::process::CommandExt;
use crate::sys::c::{BOOL, DWORD, INFINITE};
#[repr(C, packed)]
#[repr(C)]
struct DEBUG_EVENT {
pub event_code: DWORD,
pub process_id: DWORD,