diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-31 15:33:54 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-10-31 19:11:56 +0100 |
commit | ffab1eabe315073874af4bef110d46e87d3dd608 (patch) | |
tree | ac08f31121f51bb4cab9d0ae7a44be7a301be586 /api/rundll32.c | |
parent | api: add debugging rundll32 entry point (diff) | |
download | wintun-ffab1eabe315073874af4bef110d46e87d3dd608.tar.xz wintun-ffab1eabe315073874af4bef110d46e87d3dd608.zip |
api: RebootRequire is an _Out_
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/rundll32.c')
-rw-r--r-- | api/rundll32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api/rundll32.c b/api/rundll32.c index d594723..a397501 100644 --- a/api/rundll32.c +++ b/api/rundll32.c @@ -105,7 +105,7 @@ VOID __stdcall CreateAdapter(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int goto cleanup; WINTUN_ADAPTER *Adapter; - BOOL RebootRequired = FALSE; + BOOL RebootRequired; DWORD Result = WintunCreateAdapter(Argv[2], Argv[3], Argc > 4 ? &RequestedGUID : NULL, &Adapter, &RebootRequired); WCHAR GuidStr[MAX_GUID_STRING_LEN]; WriteFormatted( @@ -137,7 +137,7 @@ VOID __stdcall DeleteAdapter(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int BOOL ForceCloseSessions = wcstoul(Argv[2], NULL, 10); if (FAILED(CLSIDFromString(Argv[3], &Adapter.CfgInstanceID))) goto cleanup; - BOOL RebootRequired = FALSE; + BOOL RebootRequired; WriteFormatted( STD_OUTPUT_HANDLE, L"%1!X! %2!X!", @@ -167,7 +167,7 @@ VOID __stdcall DoThingsForDebugging(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLin { 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef } }; WINTUN_ADAPTER *Adapter; - BOOL RebootRequired = FALSE; + BOOL RebootRequired; assert(WintunCreateAdapter(L"Wintun", L"Test", &TestGuid, &Adapter, &RebootRequired) == ERROR_SUCCESS); assert(!RebootRequired); TUN_SESSION *Session; |