mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
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:
parent
d81987661a
commit
45ad522e87
@ -386,7 +386,7 @@ fn test_interior_nul_in_env_value_is_error() {
|
|||||||
fn test_creation_flags() {
|
fn test_creation_flags() {
|
||||||
use crate::os::windows::process::CommandExt;
|
use crate::os::windows::process::CommandExt;
|
||||||
use crate::sys::c::{BOOL, DWORD, INFINITE};
|
use crate::sys::c::{BOOL, DWORD, INFINITE};
|
||||||
#[repr(C, packed)]
|
#[repr(C)]
|
||||||
struct DEBUG_EVENT {
|
struct DEBUG_EVENT {
|
||||||
pub event_code: DWORD,
|
pub event_code: DWORD,
|
||||||
pub process_id: DWORD,
|
pub process_id: DWORD,
|
||||||
|
Loading…
Reference in New Issue
Block a user