Skip to content

Commit

Permalink
Fix win32 %peek-message call.
Browse files Browse the repository at this point in the history
Test if return value is non-zero, not doing this
lead to stalled messages in the queue and
a bad event loop ensues.
  • Loading branch information
patzy committed Jan 3, 2013
1 parent 51fe11f commit f7a601e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win32/win32.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@
(when (> (%get-message msg wnd 0 0) 0)
(%translate-message msg)
(%dispatch-message msg))
(when (%peek-message msg wnd 0 0 :pm-remove)
(when (> (%peek-message msg wnd 0 0 :pm-remove) 0)
(%translate-message msg)
(%dispatch-message msg))))
%event%))
Expand Down

0 comments on commit f7a601e

Please sign in to comment.