Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
fea9d8f1
Commit
fea9d8f1
authored
Sep 27, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Sep 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Remove useless loop and initialize gateway linked list next member to NULL.
parent
29a4da8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+4
-13
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
fea9d8f1
...
...
@@ -813,19 +813,9 @@ static ULONG adapterAddressesFromIndex(ULONG family, DWORD index, IP_ADAPTER_ADD
PIP_ADAPTER_GATEWAY_ADDRESS
gw
;
PSOCKADDR_IN
sin
;
for
(
gw
=
aa
->
FirstGatewayAddress
;
gw
&&
gw
->
Next
;
gw
=
gw
->
Next
)
;
if
(
!
gw
)
{
gw
=
(
PIP_ADAPTER_GATEWAY_ADDRESS
)
ptr
;
aa
->
FirstGatewayAddress
=
gw
;
}
else
{
gw
->
Next
=
(
PIP_ADAPTER_GATEWAY_ADDRESS
)
ptr
;
gw
=
gw
->
Next
;
}
gw
=
(
PIP_ADAPTER_GATEWAY_ADDRESS
)
ptr
;
aa
->
FirstGatewayAddress
=
gw
;
gw
->
u
.
s
.
Length
=
sizeof
(
IP_ADAPTER_GATEWAY_ADDRESS
);
ptr
+=
sizeof
(
IP_ADAPTER_GATEWAY_ADDRESS
);
sin
=
(
PSOCKADDR_IN
)
ptr
;
...
...
@@ -835,6 +825,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, DWORD index, IP_ADAPTER_ADD
sizeof
(
DWORD
));
gw
->
Address
.
lpSockaddr
=
(
LPSOCKADDR
)
sin
;
gw
->
Address
.
iSockaddrLength
=
sizeof
(
SOCKADDR_IN
);
gw
->
Next
=
NULL
;
ptr
+=
sizeof
(
SOCKADDR_IN
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment