From 6608cbb20cca6674ff02fb176ecf0d719dbf9bec Mon Sep 17 00:00:00 2001 From: tomaka Date: Mon, 23 Feb 2015 14:46:47 +0100 Subject: Fix win32 compilation --- src/win32/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/win32/init.rs b/src/win32/init.rs index 53fbc96..11a5e9f 100644 --- a/src/win32/init.rs +++ b/src/win32/init.rs @@ -297,7 +297,7 @@ fn register_window_class() -> Vec { let class = winapi::WNDCLASSEXW { cbSize: mem::size_of::() as winapi::UINT, style: winapi::CS_HREDRAW | winapi::CS_VREDRAW | winapi::CS_OWNDC, - lpfnWndProc: callback::callback, + lpfnWndProc: Some(callback::callback), cbClsExtra: 0, cbWndExtra: 0, hInstance: unsafe { kernel32::GetModuleHandleW(ptr::null()) }, -- cgit v1.2.3