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:
Dean Camera 2009-04-13 06:58:46 +00:00
parent d3484e6bdd
commit af02b5b0c9
4 changed files with 7 additions and 5 deletions

View file

@ -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;