14b911457e7ae86d5f3a0480fd59a5591b4c89ae
[reactos.git] / rostests / apitests / w32knapi / ntgdi / NtGdiBitBlt.c
1
2 INT
3 Test_NtGdiBitBlt(PTESTINFO pti)
4 {
5 BOOL bRet;
6
7 /* Test NULL dc */
8 SetLastError(ERROR_SUCCESS);
9 bRet = NtGdiBitBlt((HDC)0, 0, 0, 10, 10, (HDC)0, 10, 10, SRCCOPY, 0, 0);
10 TEST(bRet == FALSE);
11 TEST(GetLastError() == ERROR_SUCCESS);
12
13 /* Test invalid dc */
14 SetLastError(ERROR_SUCCESS);
15 bRet = NtGdiBitBlt((HDC)0x123456, 0, 0, 10, 10, (HDC)0x123456, 10, 10, SRCCOPY, 0, 0);
16 TEST(bRet == FALSE);
17 TEST(GetLastError() == ERROR_SUCCESS);
18
19 return APISTATUS_NORMAL;
20 }