gdi32: Make the bitmap test pass under Windows 2000. Take 2
dmitry at codeweavers.com
Tue Apr 22 10:11:39 CDT 2008
"Paul Vriens" <paul.vriens.wine at gmail.com> wrote:
>>> This one will fail at least on my VMware box. Shouldn't the test (and
>>> it's confirmed by James and me) include something like:
>>> ok(hbmp!=0 || (hbmp == 0 && GetLastError() ==
>>> ERROR_NOT_ENOUGH_MEMORY), ....)
>> Why will it fail? According to James (and you confirmed it):
>>> The maximum values for both width and height on win2k is 32767.
>>> Anything above that on either parameter returns
>>> ERROR_INVALID_PARAMETER. Both params can be 32767 at the same time
>>> and the call will still succeed (assuming there's enough memory left).
> It's that last piece: "assuming there's enough memory left".
That's a valid assumption I'd guess, and a lot of tests already rely
on this: every thing which indirectly or directly allocates memory,
creates windows, objects, processes, etc.
More information about the wine-devel