gdi32: Protect against short sized LOGPALETTE in CreatePalette.

Dan Kegel dank at
Tue Feb 26 10:12:28 CST 2008

your patch uses IsBadReadPtr(), but that function
is deprecated in favor of using an exception handler.
Here's an example (sorry it's a messy one, it's just the first one
google found):

Please try recoding using that approach.

If you have trouble getting this patch in, you might want to
file a bug at for your problem and link
to your patch; that will record the problem so somebody else
can pick it up later.
- Dan

More information about the wine-devel mailing list