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:
1 parent
d3484e6bdd
commit
af02b5b0c9
4 files changed
+7
-5
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user