adding test to NtGdiCreateBitmap show it does not accpect height = 0 and widith = 0

svn path=/trunk/; revision=33426
This commit is contained in:
Magnus Olsen 2008-05-11 08:09:02 +00:00
parent 3369214f4f
commit 0dfbae2961

View file

@ -169,6 +169,11 @@ Test_NtGdiCreateBitmap_Params(PTESTINFO pti)
TEST(GetLastError() == ERROR_INVALID_PARAMETER);
/* Test witdth -1 params */
SetLastError(ERROR_SUCCESS);
TEST((hBmp = NtGdiCreateBitmap(0, 0, 1, 1, NULL)) == NULL);
TEST(GetLastError() == ERROR_INVALID_PARAMETER);
return APISTATUS_NORMAL;
}