gdiplus: return a NULL bitmap when GdipCreateBitmapFromScan0 fails
Vincent Povirk
vincent at codeweavers.com
Tue Mar 3 16:17:52 CST 2009
Synthmaker (bug 15425) apparently does not check whether the call failed before disposing the image. Disposing the bogus image we give it causes a crash, but disposing NULL does not.
This gets the program to run slightly longer before crashing.
Perhaps the call should not be failing in this case, but we also should not give the address of a freed bitmap.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-gdiplus-return-a-NULL-bitmap-when-GdipCreateBitmapF.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090303/e8e36ad7/attachment.txt>
More information about the wine-patches
mailing list