mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[AFD] - Fix broken IP address pointer arithmetic (CID 14130)
[PCNET] - Fix incorrectly truncated FullDuplex BOOLEAN svn path=/trunk/; revision=56404
This commit is contained in:
parent
1356410d99
commit
fc12d8ead4
2 changed files with 2 additions and 4 deletions
|
@ -848,9 +848,7 @@ NTSTATUS TdiQueryAddress(
|
|||
|
||||
if (SnmpInfo.NumAddr != 1) {
|
||||
/* Skip loopback address */
|
||||
PIPADDR_ENTRY IpAddressEntry = (PIPADDR_ENTRY)
|
||||
((PCHAR)IpAddress) + sizeof(IPADDR_ENTRY);
|
||||
*Address = DN2H(IpAddressEntry->Addr);
|
||||
*Address = DN2H(IpAddress[1].Addr);
|
||||
} else {
|
||||
/* Select the first address returned */
|
||||
*Address = DN2H(IpAddress->Addr);
|
||||
|
|
|
@ -1286,7 +1286,7 @@ MiGetMediaDuplex(PADAPTER Adapter)
|
|||
NdisRawWritePortUshort(Adapter->PortOffset + RAP, BCR5);
|
||||
NdisRawReadPortUshort(Adapter->PortOffset + BDP, &Data);
|
||||
|
||||
return Data & BCR5_LEDOUT;
|
||||
return (Data & BCR5_LEDOUT) != 0;
|
||||
}
|
||||
|
||||
UINT
|
||||
|
|
Loading…
Reference in a new issue