mirror of
https://github.com/reactos/reactos.git
synced 2024-08-27 21:58:49 +00:00
![Timo Kreuzer](/assets/img/avatar_default.png)
- Add tests for NtGdiSelectBitmap, NtGdiSelectBrush, NtGdiSelectFont and NtGdiSelectPen svn path=/trunk/; revision=30904
21 lines
471 B
C
21 lines
471 B
C
|
|
INT
|
|
Test_NtGdiBitBlt(PTESTINFO pti)
|
|
{
|
|
BOOL bRet;
|
|
|
|
/* Test NULL dc */
|
|
SetLastError(ERROR_SUCCESS);
|
|
bRet = NtGdiBitBlt((HDC)0, 0, 0, 10, 10, (HDC)0, 10, 10, SRCCOPY, 0, 0);
|
|
TEST(bRet == FALSE);
|
|
TEST(GetLastError() == ERROR_SUCCESS);
|
|
|
|
/* Test invalid dc */
|
|
SetLastError(ERROR_SUCCESS);
|
|
bRet = NtGdiBitBlt((HDC)0x123456, 0, 0, 10, 10, (HDC)0x123456, 10, 10, SRCCOPY, 0, 0);
|
|
TEST(bRet == FALSE);
|
|
TEST(GetLastError() == ERROR_SUCCESS);
|
|
|
|
return APISTATUS_NORMAL;
|
|
}
|