diff options
author | Yuri Benditovich <yuri.benditovich@daynix.com> | 2020-01-02 14:50:00 +0200 |
---|---|---|
committer | Yan Vugenfirer <yan@daynix.com> | 2020-01-02 21:47:41 +0200 |
commit | db6c11f48afb236c422e26ce892cefcaf5c3e4eb (patch) | |
tree | 0d611e34207bee9d6432a5048093703a8c5eb4c8 | |
parent | 26a361966662d830b8454f68c81ee5a8a9eb56a3 (diff) |
driver: add log on filter file close
Currently we stop redirection when filter device file handle
closed. This might be incorrect if some application just opens
and closes the file. Log entry with process id will help
diagnosing such problems.
Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
-rw-r--r-- | UsbDk/RedirectorStrategy.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/UsbDk/RedirectorStrategy.cpp b/UsbDk/RedirectorStrategy.cpp index ff36933..f8755f3 100644 --- a/UsbDk/RedirectorStrategy.cpp +++ b/UsbDk/RedirectorStrategy.cpp @@ -630,6 +630,7 @@ void CUsbDkRedirectorStrategy::OnClose() { USB_DK_DEVICE_ID ID; UsbDkFillIDStruct(&ID, *m_DeviceID->begin(), *m_InstanceID->begin()); + TraceEvents(TRACE_LEVEL_INFORMATION, TRACE_REDIRECTOR, "%!FUNC!"); auto status = m_ControlDevice->RemoveRedirect(ID); if (!NT_SUCCESS(status)) |