mirror of
https://github.com/reactos/reactos.git
synced 2026-07-05 01:34:39 +08:00
adding height -1 and height 0 test for create a bitmap
svn path=/trunk/; revision=33405
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user