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/N…
==============================================================================
--- 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;
}