diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-02 16:04:33 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2020-11-02 16:38:56 +0100 |
commit | c20e1683c21a1e281479f3caca1754b39820cd81 (patch) | |
tree | 742b13d4dd864676704559e05637f9487f260799 /api/rundll32.c | |
parent | api: statically compile devpkey constants (diff) | |
download | wintun-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.c | 3 |
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); |