Skip to content

Commit

Permalink
RedirectorStrategy: Use more specific type for request objects
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Fleytman <[email protected]>
  • Loading branch information
Dmitry Fleytman committed Feb 10, 2016
1 parent 44e3837 commit 346554f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions UsbDk/RedirectorStrategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ void CUsbDkRedirectorStrategy::IoDeviceControl(WDFREQUEST Request,
{
default:
{
CWdfRequest(Request).ForwardToIoQueue(m_IncomingConfigQueue);
CRedirectorRequest(Request).ForwardToIoQueue(m_IncomingConfigQueue);
break;
}
case IOCTL_USBDK_DEVICE_READ_PIPE:
Expand Down Expand Up @@ -494,15 +494,15 @@ void CUsbDkRedirectorStrategy::IoDeviceControlConfig(WDFREQUEST Request,
}
case IOCTL_USBDK_DEVICE_ABORT_PIPE:
{
CWdfRequest WdfRequest(Request);
CRedirectorRequest WdfRequest(Request);
UsbDkHandleRequestWithInput<ULONG64>(WdfRequest,
[this, Request](ULONG64 *endpointAddress, size_t)
{return m_Target.AbortPipe(Request, *endpointAddress); });
return;
}
case IOCTL_USBDK_DEVICE_RESET_PIPE:
{
CWdfRequest WdfRequest(Request);
CRedirectorRequest WdfRequest(Request);
UsbDkHandleRequestWithInput<ULONG64>(WdfRequest,
[this, Request](ULONG64 *endpointAddress, size_t)
{return m_Target.ResetPipe(Request, *endpointAddress); });
Expand All @@ -511,7 +511,7 @@ void CUsbDkRedirectorStrategy::IoDeviceControlConfig(WDFREQUEST Request,
case IOCTL_USBDK_DEVICE_SET_ALTSETTING:
{
m_IncomingDataQueue.StopSync();
CWdfRequest WdfRequest(Request);
CRedirectorRequest WdfRequest(Request);
UsbDkHandleRequestWithInput<USBDK_ALTSETTINGS_IDXS>(WdfRequest,
[this, Request](USBDK_ALTSETTINGS_IDXS *altSetting, size_t)
{return m_Target.SetInterfaceAltSetting(altSetting->InterfaceIdx, altSetting->AltSettingIdx);});
Expand All @@ -520,7 +520,7 @@ void CUsbDkRedirectorStrategy::IoDeviceControlConfig(WDFREQUEST Request,
}
case IOCTL_USBDK_DEVICE_RESET_DEVICE:
{
CWdfRequest WdfRequest(Request);
CRedirectorRequest WdfRequest(Request);
auto status = m_Target.ResetDevice(Request);
WdfRequest.SetStatus(status);
return;
Expand Down

0 comments on commit 346554f

Please sign in to comment.