mirror of
https://github.com/reactos/reactos.git
synced 2026-07-03 10:44:25 +08:00
adding test to NtGdiCreateBitmap show it does not accpect height = 0 and widith = 0
svn path=/trunk/; revision=33426
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user