Fixed RNDISEthenet demo checking the incorrect message field for packet size constraints (thanks to Jonathan).
Fixed WriteNextReport code in the GenericHIDHost demo using incorrect parameter types and not selecting the correct endpoint.
This commit is contained in:
parent
d3484e6bdd
commit
af02b5b0c9
4 changed files with 7 additions and 5 deletions
|
@ -284,7 +284,7 @@ TASK(RNDIS_Task)
|
|||
Endpoint_Read_Stream_LE(&RNDISPacketHeader, sizeof(RNDIS_PACKET_MSG_t));
|
||||
|
||||
/* Stall the request if the data is too large */
|
||||
if (RNDISPacketHeader.MessageLength > ETHERNET_FRAME_SIZE_MAX)
|
||||
if (RNDISPacketHeader.DataLength > ETHERNET_FRAME_SIZE_MAX)
|
||||
{
|
||||
Endpoint_StallTransaction();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue