Author: greatlrd
Date: Sun May 11 03:09:02 2008
New Revision: 33426
URL:
http://svn.reactos.org/svn/reactos?rev=33426&view=rev
Log:
adding test to NtGdiCreateBitmap show it does not accpect height = 0 and widith = 0
Modified:
trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c
Modified: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntgdi/N…
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c [iso-8859-1] Sun May 11
03:09:02 2008
@@ -169,6 +169,11 @@
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;
}