diff --git a/examples/src/lib.rs b/examples/src/lib.rs index 3ad39ff..2e1e66e 100644 --- a/examples/src/lib.rs +++ b/examples/src/lib.rs @@ -103,7 +103,7 @@ fn create_surface(instance: &Instance, window: &winit::Window) -> Result { use winit::os::windows::WindowExt; - let hwnd = window.get_hwnd() as *mut winapi::windef::HWND__; + let hwnd = unsafe {window.get_hwnd() as *mut winapi::windef::HWND__ }; let hinstance = user32::GetWindow(hwnd, 0) as *const (); let win32_create_info = vk::Win32SurfaceCreateInfoKHR { s_type: vk::StructureType::Win32SurfaceCreateInfoKhr,