aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-02-23 15:02:51 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-02-23 15:02:51 +0100
commitd147200c02a719ed8cfab12a2ffe16c99a4c65a5 (patch)
tree6958cb6ae5eb1b67c31668ca31483edf42e4eac6 /src/win32
parent3baa16fe80ec586d6ec6fbbd55743dc572a5ead1 (diff)
parent6608cbb20cca6674ff02fb176ecf0d719dbf9bec (diff)
downloadglutin-d147200c02a719ed8cfab12a2ffe16c99a4c65a5.tar.gz
glutin-d147200c02a719ed8cfab12a2ffe16c99a4c65a5.zip
Merge pull request #296 from tomaka/tomaka-patch-2
Fix win32 compilation
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/init.rs2
1 files changed, 1 insertions, 1 deletions
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<u16> {
let class = winapi::WNDCLASSEXW {
cbSize: mem::size_of::<winapi::WNDCLASSEXW>() 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()) },