mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 00:13:57 +00:00
commit testcase for wdith negative and 0
svn path=/trunk/; revision=33406
This commit is contained in:
parent
a623366dca
commit
826f6108be
|
@ -158,6 +158,18 @@ Test_NtGdiCreateBitmap_Params(PTESTINFO pti)
|
|||
TEST((hBmp = NtGdiCreateBitmap(1, -1, 1, 1, NULL)) == NULL);
|
||||
TEST(GetLastError() == ERROR_INVALID_PARAMETER);
|
||||
|
||||
/* Test witdth 0 params */
|
||||
SetLastError(ERROR_SUCCESS);
|
||||
TEST((hBmp = NtGdiCreateBitmap(0, 1, 1, 1, NULL)) == NULL);
|
||||
TEST(GetLastError() == ERROR_INVALID_PARAMETER);
|
||||
|
||||
/* Test witdth -1 params */
|
||||
SetLastError(ERROR_SUCCESS);
|
||||
TEST((hBmp = NtGdiCreateBitmap(-1, 0, 1, 1, NULL)) == NULL);
|
||||
TEST(GetLastError() == ERROR_INVALID_PARAMETER);
|
||||
|
||||
|
||||
|
||||
return APISTATUS_NORMAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue