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
3825be96
Commit
3825be96
authored
Aug 05, 2018
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Aug 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Report NO_ERROR when IcmpSendEcho() succeeded.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
417e996e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
icmp.c
dlls/iphlpapi/icmp.c
+3
-0
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+1
-1
No files found.
dlls/iphlpapi/icmp.c
View file @
3825be96
...
...
@@ -424,7 +424,10 @@ DWORD WINAPI IcmpSendEcho(
TRACE
(
"received an ICMP packet of type,code=%d,%d
\n
"
,
icmp_header
->
icmp_type
,
icmp_header
->
icmp_code
);
if
(
icmp_header
->
icmp_type
==
ICMP_ECHOREPLY
)
{
if
((
icmp_header
->
icmp_id
==
id
)
&&
(
icmp_header
->
icmp_seq
==
seq
))
{
ier
->
Status
=
IP_SUCCESS
;
SetLastError
(
NO_ERROR
);
}
}
else
{
switch
(
icmp_header
->
icmp_type
)
{
case
ICMP_UNREACH
:
...
...
dlls/iphlpapi/tests/iphlpapi.c
View file @
3825be96
...
...
@@ -1118,7 +1118,7 @@ todo_wine
error
=
GetLastError
();
reply
=
(
ICMP_ECHO_REPLY
*
)
replydata
;
ok
(
ret
,
"IcmpSendEcho failed unexpectedly
\n
"
);
todo_wine
ok
(
error
==
NO_ERROR
,
"Expect last error:0x%08x, got:0x%08x
\n
"
,
NO_ERROR
,
error
);
ok
(
error
==
NO_ERROR
,
"Expect last error:0x%08x, got:0x%08x
\n
"
,
NO_ERROR
,
error
);
ok
(
INADDR_LOOPBACK
==
ntohl
(
reply
->
Address
),
"Address mismatch, expect:%s, got: %s
\n
"
,
ntoa
(
INADDR_LOOPBACK
),
ntoa
(
reply
->
Address
));
ok
(
reply
->
Status
==
IP_SUCCESS
,
"Expect status:0x%08x, got:0x%08x
\n
"
,
IP_SUCCESS
,
reply
->
Status
);
...
...
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