Changeset af430ce in mainline for uspace/lib/usb/src/request.c
- Timestamp:
- 2011-03-02T15:01:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 24aa62c
- Parents:
- 37b1651d (diff), 30db06c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/request.c
r37b1651d raf430ce 504 504 * 505 505 * @param[in] pipe Control endpoint pipe (session must be already started). 506 * @param[in] index String index (in native endianess). 506 * @param[in] index String index (in native endianess), 507 * first index has number 1 (index from descriptors can be used directly). 507 508 * @param[in] lang String language (in native endianess). 508 509 * @param[out] string_ptr Where to store allocated string in native encoding. … … 515 516 return EBADMEM; 516 517 } 517 /* Index is actually one byte value. */ 518 if (index > 0xFF) { 518 /* 519 * Index is actually one byte value and zero index is used 520 * to retrieve list of supported languages. 521 */ 522 if ((index < 1) || (index > 0xFF)) { 519 523 return ERANGE; 520 524 }
Note:
See TracChangeset
for help on using the changeset viewer.