Skip to content

Commit

Permalink
Don't mark DEBUG_EVENT struct as repr(packed)
Browse files Browse the repository at this point in the history
That would give it alignment of 1 which is ABI-incompatible with its C
definition.
  • Loading branch information
tbu- committed Jul 10, 2024
1 parent 4552576 commit e419147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/src/process/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e419147

Please sign in to comment.