ReactOS 0.4.15-dev-7846-g8ba6c66
BeginPath.c File Reference
#include "precomp.h"
Include dependency graph for BeginPath.c:

Go to the source code of this file.

Functions

void Test_BeginPath ()
 
 START_TEST (BeginPath)
 

Function Documentation

◆ START_TEST()

START_TEST ( BeginPath  )

Definition at line 31 of file BeginPath.c.

32{
34}
void Test_BeginPath()
Definition: BeginPath.c:10

◆ Test_BeginPath()

void Test_BeginPath ( )

Definition at line 10 of file BeginPath.c.

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
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
28
29}
#define ok(value,...)
Definition: atltest.h:57
#define NULL
Definition: types.h:112
#define SetLastError(x)
Definition: compat.h:752
#define ERROR_INVALID_HANDLE
Definition: compat.h:98
unsigned int BOOL
Definition: ntddk_ex.h:94
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
int ret
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI DeleteDC(_In_ HDC)
BOOL WINAPI BeginPath(_In_ HDC hdc)

Referenced by START_TEST().