aboutsummaryrefslogtreecommitdiff
path: root/system/scangearmp2/libusb.patch
blob: cc40f1ab011e36c1993d8269095bbc7139b25208 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- scangearmp2.orig/src/canon_mfp_tools.c	2023-03-08 14:07:54.261226941 +1300
+++ scangearmp2/src/canon_mfp_tools.c	2023-03-08 14:09:44.926237600 +1300
@@ -394,7 +394,7 @@
 		goto onErr;
 	}
 	/* search canon mfp */
-	numdev = libusb_get_device_list(NULL, &g_devlist);
+	numdev = libusb_get_device_list(g_context, &g_devlist);
 	if((int)numdev == 0) {
 		err = CN_USB_WRITE_ERROR;
 		goto onErr;