[ros-diffs] [greatlrd] 33426: adding test to NtGdiCreateBitmap show it does not accpect height = 0 and widith = 0

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sun May 11 10:09:02 CEST 2008


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/NtGdiCreateBitmap.c?rev=33426&r1=33425&r2=33426&view=diff
==============================================================================
--- 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;
 }



More information about the Ros-diffs mailing list