Skip to content

Commit

Permalink
RedirectorStrategy: Fix MakeAvailable() logic chaining
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 19, 2017
1 parent 2c06508 commit 6dd93fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion UsbDk/RedirectorStrategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ enum UsbDkTransferDirection

NTSTATUS CUsbDkRedirectorStrategy::MakeAvailable()
{
auto status = m_Target.Create(m_Owner->WdfObject());
auto status = CUsbDkHiderStrategy::MakeAvailable();
if (!NT_SUCCESS(status))
{
return status;
}

status = m_Target.Create(m_Owner->WdfObject());
if (!NT_SUCCESS(status))
{
TraceEvents(TRACE_LEVEL_ERROR, TRACE_REDIRECTOR, "%!FUNC! Cannot create USB target");
Expand Down

0 comments on commit 6dd93fb

Please sign in to comment.