adding height -1 and height 0 test for create a bitmap

svn path=/trunk/; revision=33405
This commit is contained in:
Magnus Olsen 2008-05-10 11:55:58 +00:00
parent dc6e9467cc
commit a623366dca

View file

@ -147,6 +147,17 @@ Test_NtGdiCreateBitmap_Params(PTESTINFO pti)
TEST(bitmap.bmBitsPixel == 8);
DeleteObject(hBmp);
/* Test height 0 params */
SetLastError(ERROR_SUCCESS);
TEST((hBmp = NtGdiCreateBitmap(1, 0, 1, 1, NULL)) == NULL);
TEST(GetLastError() == ERROR_INVALID_PARAMETER);
/* Test height -1 params */
SetLastError(ERROR_SUCCESS);
TEST((hBmp = NtGdiCreateBitmap(1, -1, 1, 1, NULL)) == NULL);
TEST(GetLastError() == ERROR_INVALID_PARAMETER);
return APISTATUS_NORMAL;
}