commit testcase for wdith negative and 0

svn path=/trunk/; revision=33406
This commit is contained in:
Magnus Olsen 2008-05-10 12:02:59 +00:00
parent a623366dca
commit 826f6108be

View file

@ -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;
}