aboutsummaryrefslogtreecommitdiffstats
path: root/api/session.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-05 15:25:52 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-05 16:58:43 +0100
commit9f3d4667915357b8e7c2dbce87d94e389f8305de (patch)
treef06c600ccc9cff4ce449446f44867580e059c3c2 /api/session.c
parentexample: raise to 4MiB (diff)
downloadwintun-9f3d4667915357b8e7c2dbce87d94e389f8305de.tar.xz
wintun-9f3d4667915357b8e7c2dbce87d94e389f8305de.zip
api: remove WintunOpenAdapterDeviceObject
Discourage use of kernel interface, which gives us more flexibility if we ever want to change it. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/session.c')
-rw-r--r--api/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/session.c b/api/session.c
index e854bde..c48d5cb 100644
--- a/api/session.c
+++ b/api/session.c
@@ -109,7 +109,7 @@ _Return_type_success_(return != NULL) TUN_SESSION *WINAPI
goto cleanupSendTailMoved;
}
- Session->Handle = WintunOpenAdapterDeviceObject(Adapter);
+ Session->Handle = AdapterOpenDeviceObject(Adapter);
if (Session->Handle == INVALID_HANDLE_VALUE)
{
LastError = LOG(WINTUN_LOG_ERR, L"Failed to open adapter device object");