Skip to content
Closed
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
5 changes: 5 additions & 0 deletions src/win/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,11 @@ impl Window<'_> {
let mut msg: MSG = std::mem::zeroed();

loop {
let window_state_ptr = GetWindowLongPtrW(hwnd, GWLP_USERDATA) as *mut WindowState;
if window_state_ptr.is_null() {
break;
}

let status = GetMessageW(&mut msg, hwnd, 0, 0);

if status == -1 {
Expand Down