Skip to content

Commit 0549ab2

Browse files
Merge pull request #2053 from forderud/wmain-int
Update writing-manifest-based-events.md with int wmain return-type
2 parents 302d8b8 + c4ced6a commit 0549ab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

desktop-src/ETW/writing-manifest-based-events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ typedef struct _namedvalue {
5353
USHORT value;
5454
} NAMEDVALUE, *PNAMEDVALUE;
5555

56-
void wmain(void)
56+
int wmain(void)
5757
{
5858
DWORD status = ERROR_SUCCESS;
5959
REGHANDLE RegistrationHandle = NULL;
@@ -146,8 +146,8 @@ void wmain(void)
146146
}
147147

148148
cleanup:
149-
150149
EventUnregister(RegistrationHandle);
150+
return 0;
151151
}
152152
```
153153

0 commit comments

Comments
 (0)