ReactOS  0.4.15-dev-1197-g8081ba9
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 
27  DeleteDC(hdc);
28 
29 }
#define ERROR_INVALID_HANDLE
Definition: compat.h:98
static HDC
Definition: imagelist.c:92
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1044
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
#define SetLastError(x)
Definition: compat.h:500
int ret
HDC hdc
Definition: main.c:9
BOOL WINAPI DeleteDC(_In_ HDC)
#define ok(value,...)
Definition: atltest.h:57
BOOL WINAPI BeginPath(_In_ HDC hdc)

Referenced by START_TEST().