diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-04 14:53:39 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-04 14:53:39 +0100 |
commit | dc99f96da799d1e799c2ac37cc97e28de44ae521 (patch) | |
tree | 98406538ebcb5c7538ac6346e112b8a5a937d130 /api/adapter.c | |
parent | example: account for buffer being drained too slowly (diff) | |
download | wintun-dc99f96da799d1e799c2ac37cc97e28de44ae521.tar.xz wintun-dc99f96da799d1e799c2ac37cc97e28de44ae521.zip |
api: rename GetVersion to GetRunningDriverVersion
This makes our intentions a lot more clear, and in case we ever add
other version functions, makes the forward path simpler.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'api/adapter.c')
-rw-r--r-- | api/adapter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/adapter.c b/api/adapter.c index 12b02fe..50d1929 100644 --- a/api/adapter.c +++ b/api/adapter.c @@ -1083,7 +1083,7 @@ static _Return_type_success_(return != FALSE) BOOL } DWORD WINAPI -WintunGetVersion(void) +WintunGetRunningDriverVersion(void) { PRTL_PROCESS_MODULES Modules; ULONG BufferSize = 128 * 1024; @@ -1127,7 +1127,7 @@ static BOOL EnsureWintunUnloaded(void) { BOOL Loaded; - for (int i = 0; (Loaded = WintunGetVersion() != 0) != FALSE && i < 300; ++i) + for (int i = 0; (Loaded = WintunGetRunningDriverVersion() != 0) != FALSE && i < 300; ++i) Sleep(50); return !Loaded; } |