Fix win32 compilation

This commit is contained in:
tomaka 2015-02-23 14:46:47 +01:00
parent 3baa16fe80
commit 6608cbb20c

View file

@ -297,7 +297,7 @@ fn register_window_class() -> Vec<u16> {
let class = winapi::WNDCLASSEXW { let class = winapi::WNDCLASSEXW {
cbSize: mem::size_of::<winapi::WNDCLASSEXW>() as winapi::UINT, cbSize: mem::size_of::<winapi::WNDCLASSEXW>() as winapi::UINT,
style: winapi::CS_HREDRAW | winapi::CS_VREDRAW | winapi::CS_OWNDC, style: winapi::CS_HREDRAW | winapi::CS_VREDRAW | winapi::CS_OWNDC,
lpfnWndProc: callback::callback, lpfnWndProc: Some(callback::callback),
cbClsExtra: 0, cbClsExtra: 0,
cbWndExtra: 0, cbWndExtra: 0,
hInstance: unsafe { kernel32::GetModuleHandleW(ptr::null()) }, hInstance: unsafe { kernel32::GetModuleHandleW(ptr::null()) },