api: log instance id when object file name is empty

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2021-07-08 03:13:14 +02:00
parent bf5b170101
commit cf6e441ff5

View File

@ -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;