commit testcase for wdith negative and 0
authorMagnus Olsen <magnus@greatlord.com>
Sat, 10 May 2008 12:02:59 +0000 (12:02 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Sat, 10 May 2008 12:02:59 +0000 (12:02 +0000)
svn path=/trunk/; revision=33406

rostests/apitests/w32knapi/ntgdi/NtGdiCreateBitmap.c

index ebe9d94..4443c0f 100644 (file)
@@ -158,6 +158,18 @@ Test_NtGdiCreateBitmap_Params(PTESTINFO pti)
        TEST((hBmp = NtGdiCreateBitmap(1, -1, 1, 1, NULL)) == NULL);\r
        TEST(GetLastError() == ERROR_INVALID_PARAMETER);\r
 \r
+       /* Test witdth 0 params */\r
+       SetLastError(ERROR_SUCCESS);\r
+       TEST((hBmp = NtGdiCreateBitmap(0, 1, 1, 1, NULL)) == NULL);\r
+       TEST(GetLastError() == ERROR_INVALID_PARAMETER);\r
+\r
+       /* Test witdth -1 params */\r
+       SetLastError(ERROR_SUCCESS);\r
+       TEST((hBmp = NtGdiCreateBitmap(-1, 0, 1, 1, NULL)) == NULL);\r
+       TEST(GetLastError() == ERROR_INVALID_PARAMETER);\r
+\r
+\r
+\r
        return APISTATUS_NORMAL;\r
 }\r
 \r