aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/callback.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/callback.rs')
-rw-r--r--src/win32/callback.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/win32/callback.rs b/src/win32/callback.rs
index 5423fc3..f9ec653 100644
--- a/src/win32/callback.rs
+++ b/src/win32/callback.rs
@@ -36,8 +36,9 @@ fn send_event(input_window: winapi::HWND, event: Event) {
/// This is the callback that is called by `DispatchMessage` in the events loop.
///
/// Returning 0 tells the Win32 API that the message has been processed.
-pub extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT,
- wparam: winapi::WPARAM, lparam: winapi::LPARAM) -> winapi::LRESULT
+pub unsafe extern "system" fn callback(window: winapi::HWND, msg: winapi::UINT,
+ wparam: winapi::WPARAM, lparam: winapi::LPARAM)
+ -> winapi::LRESULT
{
match msg {
winapi::WM_DESTROY => {