summaryrefslogtreecommitdiffstats
path: root/third_party/libusb/upstream-tick147.patch
blob: 28acfc6f968ee0f71555ace59e66836159e2cf53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/third_party/libusb/src/libusb/os/darwin_usb.c b/third_party/libusb/src/libusb/os/darwin_usb.c
index 58467c3..07d6d61 100644
--- a/third_party/libusb/src/libusb/os/darwin_usb.c
+++ b/third_party/libusb/src/libusb/os/darwin_usb.c
@@ -1268,7 +1268,7 @@ static int darwin_release_interface(struct libusb_device_handle *dev_handle, int
   if (kresult != kIOReturnSuccess)
     usbi_warn (HANDLE_CTX (dev_handle), "Release: %s", darwin_error_str(kresult));
 
-  cInterface->interface = IO_OBJECT_NULL;
+  cInterface->interface = NULL;
 
   return darwin_to_libusb (kresult);
 }