1 /*
2  * PROJECT:         ReactOS api tests
3  * LICENSE:         GPL - See COPYING in the top level directory
4  * PURPOSE:         Test for BeginPath
5  * PROGRAMMERS:     Timo Kreuzer
6  */
7 
8 #include "precomp.h"
9 
10 void Test_BeginPath()
11 {
12     HDC hdc;
13     BOOL ret;
14 
15     SetLastError(0);
16     ret = BeginPath(0);
17     ok(ret == 0, "BeginPath(0) succeeded, ret == %d\n", ret);
18     ok(GetLastError() == ERROR_INVALID_HANDLE, "GetLastError() == %ld\n", GetLastError());
19 
20     hdc = CreateCompatibleDC(NULL);
21 
22     SetLastError(0);
23     ret = BeginPath(hdc);
24     ok(ret == 1, "BeginPath(hdc) failed, ret == %d\n", ret);
25     ok(GetLastError() == 0, "GetLastError() == %ld\n", GetLastError());
26 
27     DeleteDC(hdc);
28 
29 }
30 
31 START_TEST(BeginPath)
32 {
33     Test_BeginPath();
34 }
35 
36