Author: tkreuzer
Date: Thu Jun 3 21:39:28 2010
New Revision: 47550
URL:
http://svn.reactos.org/svn/reactos?rev=47550&view=rev
Log:
[W32KNAPI]
Add few more tests for NtGdiCreateBitmap
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] Thu Jun 3
21:39:28 2010
@@ -36,15 +36,30 @@
TEST(NtGdiCreateBitmap(1, -2, 1, 1, NULL) == NULL);
TEST(GetLastError() == ERROR_INVALID_PARAMETER);
- /* Test negative cy */
+ /* Test negative cy and valid bits */
SetLastError(ERROR_SUCCESS);
TEST(NtGdiCreateBitmap(1, -2, 1, 1, BitmapData) == NULL);
+ TEST(GetLastError() == ERROR_SUCCESS);
+
+ /* Test negative cy and invalid bits */
+ SetLastError(ERROR_SUCCESS);
+ TEST(NtGdiCreateBitmap(1, -2, 1, 1, (BYTE*)0x80001234) == NULL);
TEST(GetLastError() == ERROR_SUCCESS);
/* Test huge size */
SetLastError(ERROR_SUCCESS);
TEST(NtGdiCreateBitmap(100000, 100000, 1, 1, NULL) == NULL);
TEST(GetLastError() == ERROR_NOT_ENOUGH_MEMORY);
+
+ /* Test huge size and valid bits */
+ SetLastError(ERROR_SUCCESS);
+ TEST(NtGdiCreateBitmap(1000, 1000, 1, 1, BitmapData) == NULL);
+ TEST(GetLastError() == ERROR_SUCCESS);
+
+ /* Test huge size and invalid bits */
+ SetLastError(ERROR_SUCCESS);
+ TEST(NtGdiCreateBitmap(100000, 100000, 1, 1, (BYTE*)0x80001234) == NULL);
+ TEST(GetLastError() == ERROR_SUCCESS);
/* Test cPlanes == 0 */
SetLastError(ERROR_SUCCESS);