From a3ee8f04c0ed7ce5bfafd27583f4b398ebfe247c Mon Sep 17 00:00:00 2001 From: Dmitry Fleytman Date: Mon, 23 Nov 2015 12:28:08 +0200 Subject: [PATCH] ControlDevice: Refactoring: Rename some private members Signed-off-by: Dmitry Fleytman --- UsbDk/ControlDevice.cpp | 4 ++-- UsbDk/ControlDevice.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/UsbDk/ControlDevice.cpp b/UsbDk/ControlDevice.cpp index 03c36b5..bb51036 100644 --- a/UsbDk/ControlDevice.cpp +++ b/UsbDk/ControlDevice.cpp @@ -639,7 +639,7 @@ NTSTATUS CUsbDkControlDevice::GetConfigurationDescriptor(const USB_DK_CONFIG_DES NTSTATUS CUsbDkControlDevice::AddRedirect(const USB_DK_DEVICE_ID &DeviceId, HANDLE RequestorProcess, PHANDLE RedirectorDevice) { CUsbDkRedirection *Redirection; - auto addRes = AddDeviceToSet(DeviceId, &Redirection); + auto addRes = AddRedirectionToSet(DeviceId, &Redirection); if (!NT_SUCCESS(addRes)) { return addRes; @@ -891,7 +891,7 @@ NTSTATUS CUsbDkControlDevice::ReloadPersistentHideRules() } -NTSTATUS CUsbDkControlDevice::AddDeviceToSet(const USB_DK_DEVICE_ID &DeviceId, CUsbDkRedirection **NewRedirection) +NTSTATUS CUsbDkControlDevice::AddRedirectionToSet(const USB_DK_DEVICE_ID &DeviceId, CUsbDkRedirection **NewRedirection) { CObjHolder newRedir(new CUsbDkRedirection()); diff --git a/UsbDk/ControlDevice.h b/UsbDk/ControlDevice.h index ae1d4e5..6adf405 100644 --- a/UsbDk/ControlDevice.h +++ b/UsbDk/ControlDevice.h @@ -319,7 +319,7 @@ private: bool UsbDeviceExists(const USB_DK_DEVICE_ID &ID); static void ContextCleanup(_In_ WDFOBJECT DeviceObject); - NTSTATUS AddDeviceToSet(const USB_DK_DEVICE_ID &DeviceId, CUsbDkRedirection **NewRedirection); + NTSTATUS AddRedirectionToSet(const USB_DK_DEVICE_ID &DeviceId, CUsbDkRedirection **NewRedirection); void AddRedirectRollBack(const USB_DK_DEVICE_ID &DeviceId, bool WithReset); NTSTATUS GetUsbDeviceConfigurationDescriptor(const USB_DK_DEVICE_ID &DeviceID,