PERFORCE change 170854 for review

Hans Petter Selasky hselasky at FreeBSD.org
Fri Nov 20 07:48:19 UTC 2009


http://p4web.freebsd.org/chv.cgi?CH=170854

Change 170854 by hselasky at hselasky_laptop001 on 2009/11/20 07:47:46

	
	LibUSB 1.0:
		- correct a return code in the transfer cancel function.

Affected files ...

.. //depot/projects/usb/src/lib/libusb/libusb10.c#18 edit

Differences ...

==== //depot/projects/usb/src/lib/libusb/libusb10.c#18 (text+ko) ====

@@ -1277,8 +1277,9 @@
 	if (uxfer == NULL)
 		return (LIBUSB_ERROR_INVALID_PARAM);
 
+	/* check if not initialised */
 	if (uxfer->dev_handle == NULL)
-		return (LIBUSB_ERROR_INVALID_PARAM);
+		return (LIBUSB_ERROR_NOT_FOUND);
 
 	endpoint = uxfer->endpoint;
 


More information about the p4-projects mailing list