ReactOS  0.4.15-dev-5112-g22d8c0f
seh0014.c File Reference
#include <windows.h>
#include "seh.h"
Include dependency graph for seh0014.c:

Go to the source code of this file.

Functions

void rtlRaiseExceptin (DWORD Status)
 
int main ()
 

Variables

char test [] = "SEH0014.c"
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 15 of file seh0014.c.

15  {
16  LONG Counter;
17 
18  Counter = 0;
19 
20  try {
21  try {
23  }
25  /* handler should get executed setting counter to 1 */
26  {
27  Counter += 1;
28  goto t9; /* executes finally before goto */
29  }
30  endtry
31  }
32  finally
33  /* should set counter to 2 */
34  {
35  Counter += 1;
36  }
37  endtry
38 
39 t9:
40  ;
41 
42  if (Counter != 2) {
43  printf("TEST 14 FAILED. Counter = %d\n\r", Counter);
44  return -1;
45  }
46 
47  return 0;
48 }
#define endtry
Definition: seh.h:24
#define EXCEPTION_ACCESS_VIOLATION
Definition: winbase.h:308
long LONG
Definition: pedump.c:60
void rtlRaiseExceptin(DWORD Status)
Definition: seh0014.c:10
#define printf
Definition: freeldr.h:94
#define except(x)
Definition: btrfs_drv.h:136
#define STATUS_ACCESS_VIOLATION
Definition: ntstatus.h:242
static LARGE_INTEGER Counter
Definition: clock.c:43
#define GetExceptionCode()
Definition: seh.h:27

◆ rtlRaiseExceptin()

void rtlRaiseExceptin ( DWORD  Status)

Definition at line 10 of file seh0014.c.

10  {
11  RaiseException(Status, 0, /*no flags*/ 0, 0);
12  return;
13 }
Status
Definition: gdiplustypes.h:24
VOID WINAPI RaiseException(IN DWORD dwExceptionCode, IN DWORD dwExceptionFlags, IN DWORD nNumberOfArguments, IN CONST ULONG_PTR *lpArguments OPTIONAL)
Definition: except.c:700

Referenced by main().

Variable Documentation

◆ test

char test[] = "SEH0014.c"

Definition at line 8 of file seh0014.c.