http://bugs.winehq.org/show_bug.cgi?id=11140
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dmitry@codeweavers.com
--- Comment #17 from Dmitry Timoshkov dmitry@codeweavers.com 2008-01-13 06:00:39 ---
From the log it's not obvious where that big bitmap dimensions went from.
The test under Windows shows that CreateBitmap(0x10000,0x10000, 1, 1, NULL) fails and returns 0 (and sets last error to either ERROR_INVALID_PARAMETER or ERROR_NOT_ENOUGH_MEMORY depending how big width and height I pass), but CreateBitmap(0x10000,0x100, 1, 1, NULL) succeeds. Furthermore CreateCompatibleBitmap() in Wine already checks whether width or height exceed 0x10000 and fails. This check looks incorrect basing on above test results, looks like we need to check for a real overflow/memory allocation failure.