gdi32: Make the bitmap test pass under Windows 2000. Take 2
Reece Dunn
msclrhd at googlemail.com
Tue Apr 22 07:06:45 CDT 2008
2008/4/22 Paul Vriens <paul.vriens.wine at gmail.com>:
> Hi Dmitry,
>
> 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), ....)
I would say something more like this:
ok( (hbmp != 0 && GetLastError() == ERROR_INVALID_PARAMETER) /* Win2K */
|| (hbmp == 0 && GetLastError() == ERROR_NOT_ENOUGH_MEMORY) /* XP */,
... )
Since the hbmp value and the GetLastError code are related together.
- Reece
More information about the wine-devel
mailing list