diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-07-08 03:13:14 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-07-08 03:13:14 +0200 |
commit | cf6e441ff5ad87670ba97aa8d5cbcd9a7cfaa68b (patch) | |
tree | 61f7d30b303451dd27278fa9ccb526d97e3e6955 | |
parent | api: print correct last error when failing (diff) | |
download | wintun-cf6e441ff5ad87670ba97aa8d5cbcd9a7cfaa68b.tar.xz wintun-cf6e441ff5ad87670ba97aa8d5cbcd9a7cfaa68b.zip |
api: log instance id when object file name is empty
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | api/adapter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/adapter.c b/api/adapter.c index 0fe902f..963f17d 100644 --- a/api/adapter.c +++ b/api/adapter.c @@ -228,7 +228,7 @@ static _Return_type_success_(return != NULL) WCHAR *GetDeviceObjectFileName(_In_ } if (!Interfaces[0]) { - LOG(WINTUN_LOG_ERR, L"Received empty adapter object file name"); + LOG(WINTUN_LOG_ERR, L"Received empty adapter %s object file name", InstanceId); Free(Interfaces); SetLastError(ERROR_DEVICE_NOT_AVAILABLE); return NULL; |