summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-10-23 00:14:14 +0200
committerGravatar Nikias Bassen2021-10-23 00:14:14 +0200
commitb65c93bc6867480302f2e44186d74a64e8215c94 (patch)
treead13330a19aad4c7a9cad46559979ae6cebd2afc
parenta71a544b0f1b04bc50225d76d50ec5be4ef26419 (diff)
downloadlibirecovery-b65c93bc6867480302f2e44186d74a64e8215c94.tar.gz
libirecovery-b65c93bc6867480302f2e44186d74a64e8215c94.tar.bz2
win32: SPDRP_DRIVER device property has a hexadecimal suffix, not decimal
-rw-r--r--src/libirecovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index df7b945..58a6620 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -2207,7 +2207,7 @@ static void *_irecv_event_handler(void* data)
free(details);
continue;
}
- uint32_t location = strtoul(p+1, NULL, 10);
+ uint32_t location = strtoul(p+1, NULL, 16);
int found = 0;
FOREACH(struct irecv_usb_device_info *devinfo, &devices) {