testsuite: Fix Windows breakage harder in x86stdcall2

This commit is contained in:
Tim Chevalier 2013-01-25 16:58:04 -08:00
parent d1f771ca34
commit d753ad4ee4

View File

@ -26,11 +26,11 @@
#[cfg(target_os = "win32")]
fn main() {
let heap = kernel32::GetProcessHeap();
let mem = kernel32::HeapAlloc(heap, 0u32, 100u32);
assert mem != 0u;
let res = kernel32::HeapFree(heap, 0u32, mem);
assert res != 0u8;
let heap = unsafe { kernel32::GetProcessHeap() };
let mem = unsafe { kernel32::HeapAlloc(heap, 0u32, 100u32) };
assert mem != 0u;
let res = unsafe { kernel32::HeapFree(heap, 0u32, mem) };
assert res != 0u8;
}
#[cfg(target_os = "macos")]