prevent peekmessage from crashing when msg == NULL

Eric Frias efrias at
Wed Nov 17 13:35:36 CST 2004

This is another patch for all platforms.  Somewhere, for some reason, our
client code was calling PeekMessage(NULL, ...), basically asking windows to
discard a single message without returning it.  From the MSDN docs, this
seems like an illegal use of the function, but Windows does the right thing
when we do it and wine crashes.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: peekmessage.diff
Type: application/octet-stream
Size: 998 bytes
Desc: not available
Url :

More information about the wine-patches mailing list