api: log instance id when object file name is empty
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
bf5b170101
commit
cf6e441ff5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user