diff options
author | Simon Rozman <simon@rozman.si> | 2020-07-24 10:36:24 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-30 16:50:59 +0100 |
commit | b592e071d28f29efd0565614af79dfca9075747a (patch) | |
tree | 9fa55aa7c3e4f5d6b44caa04c551ac0552b39ad2 /api/devmgmt.c | |
parent | api: update documentation (diff) | |
download | wintun-b592e071d28f29efd0565614af79dfca9075747a.tar.xz wintun-b592e071d28f29efd0565614af79dfca9075747a.zip |
api: tighten source code annotation
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
-rw-r--r-- | api/devmgmt.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/api/devmgmt.c b/api/devmgmt.c index e9ff176..6454979 100644 --- a/api/devmgmt.c +++ b/api/devmgmt.c @@ -570,7 +570,10 @@ WintunFreeAdapter(_In_ WINTUN_ADAPTER *Adapter) * if adapter is found but not a Wintun-class or not a member of the pool; Win32 error code otherwise */ WINTUN_STATUS WINAPI -WintunGetAdapter(_In_z_count_c_(MAX_POOL) const WCHAR *Pool, _In_z_ const WCHAR *Name, _Out_ WINTUN_ADAPTER **Adapter) +WintunGetAdapter( + _In_z_count_c_(MAX_POOL) const WCHAR *Pool, + _In_z_count_c_(MAX_ADAPTER_NAME) const WCHAR *Name, + _Out_ WINTUN_ADAPTER **Adapter) { DWORD Result; HANDLE Mutex = TakeNameMutex(Pool); @@ -859,7 +862,7 @@ IsNewer(_In_ const SP_DRVINFO_DATA_W *DriverData, _In_ const FILETIME *DriverDat WINTUN_STATUS WINAPI WintunCreateAdapter( _In_z_count_c_(MAX_POOL) const WCHAR *Pool, - _In_z_ const WCHAR *Name, + _In_z_count_c_(MAX_ADAPTER_NAME) const WCHAR *Name, _In_opt_ const GUID *RequestedGUID, _Out_ WINTUN_ADAPTER **Adapter, _Inout_ BOOL *RebootRequired) |