mirror of
https://github.com/reactos/reactos.git
synced 2025-04-29 18:48:53 +00:00
adding height -1 and height 0 test for create a bitmap
svn path=/trunk/; revision=33405
This commit is contained in:
parent
dc6e9467cc
commit
a623366dca
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue