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/Nt... ============================================================================== --- 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; }