2 #![feature(rustc_private)]
10 type LPWSTR = *mut u16;
13 fn FormatMessageW(flags: DWORD,
24 let mut buf: [u16; 50] = [0; 50];
26 FormatMessageW(0x1000, core::ptr::null_mut(), 1, 0x400,
27 buf.as_mut_ptr(), buf.len() as u32, core::ptr::null())
29 // On some 32-bit Windowses (Win7-8 at least) this will panic with segmented
30 // stacks taking control of pvArbitrary