From d753ad4ee44cbcf39868b8d5738fe4ffc88acaf2 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Fri, 25 Jan 2013 16:58:04 -0800 Subject: [PATCH] testsuite: Fix Windows breakage harder in x86stdcall2 --- src/test/run-pass/x86stdcall2.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/run-pass/x86stdcall2.rs b/src/test/run-pass/x86stdcall2.rs index 45207514bf4..31cf6233430 100644 --- a/src/test/run-pass/x86stdcall2.rs +++ b/src/test/run-pass/x86stdcall2.rs @@ -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")]