- Timestamp:
- Oct 16, 2024 9:25:04 AM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/UsbEth.cpp
r106345 r106348 1303 1303 pNth16->wHeaderLength = sizeof(*pNth16); 1304 1304 pNth16->wSequence = pThis->idSequence++; 1305 pNth16->wBlockLength = sizeof(*pNth16) + sizeof(*pNdp16) + cb;1305 pNth16->wBlockLength = (uint16_t)(sizeof(*pNth16) + sizeof(*pNdp16) + cb); 1306 1306 pNth16->wNdpIndex = sizeof(*pNth16); 1307 1307 … … 1311 1311 pNdp16->wNextNdpIndex = 0; 1312 1312 pNdp16->DataGram0.wDatagramIndex = sizeof(*pNth16) + sizeof(*pNdp16); 1313 pNdp16->DataGram0.wDatagramLength = cb;1313 pNdp16->DataGram0.wDatagramLength = (uint16_t)cb; 1314 1314 pNdp16->DataGram1.wDatagramIndex = 0; 1315 1315 pNdp16->DataGram1.wDatagramLength = 0; … … 1318 1318 memcpy(pNdp16 + 1, pvBuf, cb); 1319 1319 1320 pUrb->cbData = sizeof(*pNth16) + sizeof(*pNdp16) + cb;1320 pUrb->cbData = (uint32_t)(sizeof(*pNth16) + sizeof(*pNdp16) + cb); 1321 1321 usbEthLinkDone(pThis, pUrb); 1322 1322 RTCritSectLeave(&pThis->CritSect);
Note:
See TracChangeset
for help on using the changeset viewer.