UsbDkController: Handle start redirect return value properly
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
This commit is contained in:
parent
9a12b44669
commit
527a0b774f
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ void Controller_RedirectDevice(_TCHAR *DeviceID, _TCHAR *InstanceID)
|
|||
tcout << TEXT("Redirect USB device ") << deviceID.DeviceID << TEXT(", ") << deviceID.InstanceID << endl;
|
||||
|
||||
HANDLE redirectedDevice = StartRedirect(&deviceID);
|
||||
if (nullptr == redirectedDevice)
|
||||
if (INVALID_HANDLE_VALUE == redirectedDevice)
|
||||
{
|
||||
tcout << TEXT("Redirect of USB device failed") << endl;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue