mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
- Fixed some address calculations
svn path=/trunk/; revision=8074
This commit is contained in:
parent
826d5e693a
commit
6c639db134
2 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@ NTSTATUS FileOpenAddress(
|
|||
/* Locate address entry. If specified address is 0, a random address is chosen */
|
||||
|
||||
/* FIXME: IPv4 only */
|
||||
IPv4Address = ((PTDI_ADDRESS_IP)Address->Address)->in_addr;
|
||||
IPv4Address = Address->Address[0].Address[0].in_addr;
|
||||
if (IPv4Address == 0)
|
||||
AddrFile->ADE = IPGetDefaultADE(ADE_UNICAST);
|
||||
else
|
||||
|
|
|
@ -369,7 +369,7 @@ NTSTATUS TCPConnect(
|
|||
Connection->LocalPort = Connection->AddressFile->Port;
|
||||
|
||||
Status = AddrBuildAddress(
|
||||
(PTA_ADDRESS)ConnInfo->RemoteAddress,
|
||||
(PTA_ADDRESS)(&((PTRANSPORT_ADDRESS)ConnInfo->RemoteAddress)->Address[0]),
|
||||
&Connection->RemoteAddress,
|
||||
&Connection->RemotePort);
|
||||
if (!NT_SUCCESS(Status)) {
|
||||
|
|
Loading…
Reference in a new issue