Huw Davies : gdi32/tests: Winnt doesn' t set last error when a NULL dc is passed to GetDIBits.
Alexandre Julliard
julliard at winehq.org
Fri Feb 27 10:02:51 CST 2009
Module: wine
Branch: master
Commit: 973ac6dbd206da5ca824f0fed5c538df944440dd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=973ac6dbd206da5ca824f0fed5c538df944440dd
Author: Huw Davies <huw at codeweavers.com>
Date: Fri Feb 27 11:36:38 2009 +0000
gdi32/tests: Winnt doesn't set last error when a NULL dc is passed to GetDIBits.
---
dlls/gdi32/tests/bitmap.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c
index 561f96b..db3ae6d 100644
--- a/dlls/gdi32/tests/bitmap.c
+++ b/dlls/gdi32/tests/bitmap.c
@@ -1547,7 +1547,9 @@ static void test_GetDIBits(void)
SetLastError(0xdeadbeef);
lines = GetDIBits(0, hbmp, 0, bm.bmHeight, buf, bi, DIB_RGB_COLORS);
ok(lines == 0, "GetDIBits copied %d lines with hdc = 0\n", lines);
- ok(GetLastError() == ERROR_INVALID_PARAMETER, "wrong error %u\n", GetLastError());
+ ok(GetLastError() == ERROR_INVALID_PARAMETER ||
+ broken(GetLastError() == 0xdeadbeef), /* winnt */
+ "wrong error %u\n", GetLastError());
ok(bi->bmiHeader.biSizeImage == 0, "expected 0, got %u\n", bi->bmiHeader.biSizeImage);
memset(buf, 0xAA, sizeof(buf));
More information about the wine-cvs
mailing list