aboutsummaryrefslogtreecommitdiffstats
path: root/api/rundll32.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-02 16:04:33 +0100
committerSimon Rozman <simon@rozman.si>2020-11-02 16:38:56 +0100
commitc20e1683c21a1e281479f3caca1754b39820cd81 (patch)
tree742b13d4dd864676704559e05637f9487f260799 /api/rundll32.c
parentapi: statically compile devpkey constants (diff)
downloadwintun-c20e1683c21a1e281479f3caca1754b39820cd81.tar.xz
wintun-c20e1683c21a1e281479f3caca1754b39820cd81.zip
api: separate read-wait handle into other function
Makes the API a bit more clear. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/rundll32.c')
-rw-r--r--api/rundll32.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/api/rundll32.c b/api/rundll32.c
index 3da204b..31f240f 100644
--- a/api/rundll32.c
+++ b/api/rundll32.c
@@ -163,8 +163,7 @@ VOID __stdcall DoThingsForDebugging(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLin
assert(WintunCreateAdapter(L"Wintun", L"Test", &TestGuid, &Adapter, &RebootRequired) == ERROR_SUCCESS);
assert(!RebootRequired);
TUN_SESSION *Session;
- HANDLE ReadWait;
- assert(WintunStartSession(Adapter, WINTUN_MIN_RING_CAPACITY, &Session, &ReadWait) == ERROR_SUCCESS);
+ assert(WintunStartSession(Adapter, WINTUN_MIN_RING_CAPACITY, &Session) == ERROR_SUCCESS);
WintunEndSession(Session);
assert(WintunDeleteAdapter(Adapter, TRUE, &RebootRequired) == ERROR_SUCCESS);
assert(!RebootRequired);