Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
71affb28
Commit
71affb28
authored
Feb 08, 2020
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Remove unnecessary memcpy from build_udp6_table.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cb524e09
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ipstats.c
dlls/iphlpapi/ipstats.c
+2
-3
No files found.
dlls/iphlpapi/ipstats.c
View file @
71affb28
...
@@ -2719,13 +2719,12 @@ DWORD build_udp6_table( UDP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE
...
@@ -2719,13 +2719,12 @@ DWORD build_udp6_table( UDP_TABLE_CLASS class, void **tablep, BOOL order, HANDLE
ptr
=
fgets
(
buf
,
sizeof
(
buf
),
fp
);
ptr
=
fgets
(
buf
,
sizeof
(
buf
),
fp
);
while
((
ptr
=
fgets
(
buf
,
sizeof
(
buf
),
fp
)))
while
((
ptr
=
fgets
(
buf
,
sizeof
(
buf
),
fp
)))
{
{
DWORD
in6_addr32
[
4
]
;
DWORD
*
local_addr
=
(
DWORD
*
)
&
row
.
ucLocalAddr
;
if
(
sscanf
(
ptr
,
"%u: %8x%8x%8x%8x:%x %*s %*s %*s %*s %*s %*s %*s %d"
,
&
dummy
,
if
(
sscanf
(
ptr
,
"%u: %8x%8x%8x%8x:%x %*s %*s %*s %*s %*s %*s %*s %d"
,
&
dummy
,
&
in6_addr32
[
0
],
&
in6_addr32
[
1
],
&
in6_addr32
[
2
],
&
in6_addr32
[
3
],
&
local_addr
[
0
],
&
local_addr
[
1
],
&
local_addr
[
2
],
&
local_addr
[
3
],
&
row
.
dwLocalPort
,
&
inode
)
!=
7
)
&
row
.
dwLocalPort
,
&
inode
)
!=
7
)
continue
;
continue
;
memcpy
(
&
row
.
ucLocalAddr
,
in6_addr32
,
sizeof
(
row
.
ucLocalAddr
));
row
.
dwLocalScopeId
=
find_ipv6_addr_scope
((
const
IN6_ADDR
*
)
&
row
.
ucLocalAddr
,
addr_scopes
,
addr_scopes_size
);
row
.
dwLocalScopeId
=
find_ipv6_addr_scope
((
const
IN6_ADDR
*
)
&
row
.
ucLocalAddr
,
addr_scopes
,
addr_scopes_size
);
row
.
dwLocalPort
=
htons
(
row
.
dwLocalPort
);
row
.
dwLocalPort
=
htons
(
row
.
dwLocalPort
);
...
...
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