From 629d27babead5b03273d47797c8077b711c86e9a Mon Sep 17 00:00:00 2001 From: Maik Klein Date: Mon, 26 Dec 2016 03:31:51 +0100 Subject: [PATCH] add another unsafe for the win32 example --- examples/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/lib.rs b/examples/src/lib.rs index 2e1e66e..1fa5670 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs @@ -104,7 +104,7 @@ fn create_surface(instance: &Instance, -> Result { use winit::os::windows::WindowExt; let hwnd = unsafe {window.get_hwnd() as *mut winapi::windef::HWND__ }; - let hinstance = user32::GetWindow(hwnd, 0) as *const (); + let hinstance = unsafe {user32::GetWindow(hwnd, 0) as *const ()}; let win32_create_info = vk::Win32SurfaceCreateInfoKHR { s_type: vk::StructureType::Win32SurfaceCreateInfoKhr, p_next: ptr::null(),