prevent peekmessage from crashing when msg == NULL

Juan Lang juan_lang at
Wed Nov 17 14:25:25 CST 2004

Eric wrote:
> 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.

This sounds like a good place to write a test case.


p.s. and I'll call that bluff: how _do_ you know what happens when you
have more than 500 printers defined? ;)

Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 

More information about the wine-devel mailing list