mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 04:46:37 +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);
|
TEST(bitmap.bmBitsPixel == 8);
|
||||||
DeleteObject(hBmp);
|
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;
|
return APISTATUS_NORMAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue