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 committed 2009-04-13 06:58:46 +00:00
1 parent d3484e6bdd
commit af02b5b0c9
4 files changed
+7 -5

No files matched your search

+1 -1
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;