[ros-diffs] [greatlrd] 33406: commit testcase for wdith negative and 0

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sat May 10 14:03:00 CEST 2008


Author: greatlrd
Date: Sat May 10 07:02:59 2008
New Revision: 33406

URL: http://svn.reactos.org/svn/reactos?rev=33406&view=rev
Log:
commit testcase for wdith negative and 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=33406&r1=33405&r2=33406&view=diff
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c [iso-8859-1] Sat May 10 07:02:59 2008
@@ -158,6 +158,18 @@
 	TEST((hBmp = NtGdiCreateBitmap(1, -1, 1, 1, NULL)) == NULL);
 	TEST(GetLastError() == ERROR_INVALID_PARAMETER);
 
+	/* Test witdth 0 params */
+	SetLastError(ERROR_SUCCESS);
+	TEST((hBmp = NtGdiCreateBitmap(0, 1, 1, 1, NULL)) == NULL);
+	TEST(GetLastError() == ERROR_INVALID_PARAMETER);
+
+	/* Test witdth -1 params */
+	SetLastError(ERROR_SUCCESS);
+	TEST((hBmp = NtGdiCreateBitmap(-1, 0, 1, 1, NULL)) == NULL);
+	TEST(GetLastError() == ERROR_INVALID_PARAMETER);
+
+
+
 	return APISTATUS_NORMAL;
 }
 



More information about the Ros-diffs mailing list