diff options
author | Dmitry Fleytman <dfleytma@redhat.com> | 2014-04-22 10:37:15 +0300 |
---|---|---|
committer | Dmitry Fleytman <dfleytma@redhat.com> | 2014-05-11 19:26:14 +0300 |
commit | c5ea213221556275bca01d81d38bdc51b68769d8 (patch) | |
tree | dcd53d72644410da6609a695adab0d54bba0ce90 | |
parent | 8004a32e5ec942e6ce9661b6568281c501e115d2 (diff) |
UsbDk: Fix start redirect error value
It is inconsistent to return nullptr as invalid handle.
The proper value for invalid handle is INVALID_HANDLE_VALUE.
Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
-rw-r--r-- | UsbDkHelper/UsbDkHelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UsbDkHelper/UsbDkHelper.cpp b/UsbDkHelper/UsbDkHelper.cpp index c81e0f8..9eaf875 100644 --- a/UsbDkHelper/UsbDkHelper.cpp +++ b/UsbDkHelper/UsbDkHelper.cpp @@ -179,7 +179,7 @@ HANDLE StartRedirect(PUSB_DK_DEVICE_ID DeviceID) } } - return nullptr; + return INVALID_HANDLE_VALUE; } //------------------------------------------------------------------------------------------- |