[close]
Attachments you submit will be routed for moderation. If you have an account, please
log in first.
| File Fix_reset_device,
924 bytes
(added by sasisankar, 3 years ago) |
|
|
| Line | |
|---|
| 1 | --- C:/Temp/libusb-win32-src-0.1.12.2/src/driver/reset_device.c Tue Jul 07 08:53:08 2009 |
|---|
| 2 | +++ C:/Projects/libusb-win32-src-0.1.12.2/src/driver/reset_device.c Thu Apr 01 16:27:11 2010 |
|---|
| 3 | @@ -19,28 +19,19 @@ |
|---|
| 4 | |
|---|
| 5 | #include "libusb_driver.h" |
|---|
| 6 | |
|---|
| 7 | - |
|---|
| 8 | NTSTATUS reset_device(libusb_device_t *dev, int timeout) |
|---|
| 9 | { |
|---|
| 10 | NTSTATUS status = STATUS_SUCCESS; |
|---|
| 11 | |
|---|
| 12 | DEBUG_MESSAGE("reset_device()"); |
|---|
| 13 | - |
|---|
| 14 | - status = call_usbd(dev, NULL, IOCTL_INTERNAL_USB_RESET_PORT, timeout); |
|---|
| 15 | - |
|---|
| 16 | - if(!NT_SUCCESS(status)) |
|---|
| 17 | - { |
|---|
| 18 | - DEBUG_ERROR("reset_device(): IOCTL_INTERNAL_USB_RESET_PORT failed: " |
|---|
| 19 | - "status: 0x%x", status); |
|---|
| 20 | - } |
|---|
| 21 | - |
|---|
| 22 | + |
|---|
| 23 | status = call_usbd(dev, NULL, IOCTL_INTERNAL_USB_CYCLE_PORT, timeout); |
|---|
| 24 | |
|---|
| 25 | if(!NT_SUCCESS(status)) |
|---|
| 26 | - { |
|---|
| 27 | + { |
|---|
| 28 | DEBUG_ERROR("reset_device(): IOCTL_INTERNAL_USB_CYCLE_PORT failed: " |
|---|
| 29 | "status: 0x%x", status); |
|---|
| 30 | - } |
|---|
| 31 | + } |
|---|
| 32 | |
|---|
| 33 | return status; |
|---|
| 34 | } |
|---|
Download in other formats: