2008/4/22 Paul Vriens paul.vriens.wine@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