mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00: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:
parent
3369214f4f
commit
0dfbae2961
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue