Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/wrappers/win32/window/proc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ pub unsafe extern "system" fn wnd_proc<W: WindowImpl>(
inner.initialize(window)
};

(handle_error_as_fatal(result, window, inner_ptr) == 0) as _
match handle_error_as_fatal(result, window, inner_ptr) {
// On success, DefWindowProc sets up the non-client area, which includes the title
0 => handle_default(),
// On failure, abort with false
_ => 0,
}
}
WM_CREATE => {
let create = unsafe { &*(l_param as *const CREATESTRUCTW) };
Expand Down
Loading