[ros-diffs] [greatlrd] 33405: adding height -1 and height 0 test for create a bitmap
greatlrd at svn.reactos.org
greatlrd at svn.reactos.org
Sat May 10 13:55:59 CEST 2008
Author: greatlrd
Date: Sat May 10 06:55:58 2008
New Revision: 33405
URL: http://svn.reactos.org/svn/reactos?rev=33405&view=rev
Log:
adding height -1 and height 0 test for create a bitmap
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=33405&r1=33404&r2=33405&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 06:55:58 2008
@@ -147,6 +147,17 @@
TEST(bitmap.bmBitsPixel == 8);
DeleteObject(hBmp);
+
+ /* Test height 0 params */
+ SetLastError(ERROR_SUCCESS);
+ TEST((hBmp = NtGdiCreateBitmap(1, 0, 1, 1, NULL)) == NULL);
+ TEST(GetLastError() == ERROR_INVALID_PARAMETER);
+
+ /* Test height -1 params */
+ SetLastError(ERROR_SUCCESS);
+ TEST((hBmp = NtGdiCreateBitmap(1, -1, 1, 1, NULL)) == NULL);
+ TEST(GetLastError() == ERROR_INVALID_PARAMETER);
+
return APISTATUS_NORMAL;
}
More information about the Ros-diffs
mailing list