Merge pull request #296 from tomaka/tomaka-patch-2

Fix win32 compilation
This commit is contained in:
tomaka 2015-02-23 15:02:51 +01:00
commit d147200c02

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()) },