From 0dfbae296142dd0aa5f85eb591cb67e7ce806213 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 11 May 2008 08:09:02 +0000 Subject: [PATCH] adding test to NtGdiCreateBitmap show it does not accpect height = 0 and widith = 0 svn path=/trunk/; revision=33426 --- rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c b/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c index 4443c0f4747..5f8d92374c7 100644 --- a/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c +++ b/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c @@ -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; }