reactos/rostests/apitests/gdi32api/tests/BeginPath.c
Timo Kreuzer f5cbabe20c Add basic tests for BeginPath andd SetMapMode
svn path=/trunk/; revision=36691
2008-10-08 10:58:41 +00:00

24 lines
369 B
C

INT
Test_BeginPath(PTESTINFO pti)
{
HDC hDC;
BOOL ret;
SetLastError(0);
ret = BeginPath(0);
TEST(ret == 0);
TEST(GetLastError() == ERROR_INVALID_HANDLE);
hDC = CreateCompatibleDC(NULL);
SetLastError(0);
ret = BeginPath(hDC);
TEST(ret == 1);
TEST(GetLastError() == 0);
DeleteDC(hDC);
return APISTATUS_NORMAL;
}