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
cb9c9649
Commit
cb9c9649
authored
Dec 25, 1999
by
Francois Gouget
Committed by
Alexandre Julliard
Dec 25, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified IcmpCloseHandle and IcmpSendEchoRequest so that we don't
crash if the handle is INVALID_HANDLE_VALUE.
parent
9dd9743b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
icmp_main.c
dlls/icmp/icmp_main.c
+11
-0
No files found.
dlls/icmp/icmp_main.c
View file @
cb9c9649
...
...
@@ -182,6 +182,11 @@ HANDLE WINAPI IcmpCreateFile(VOID)
BOOL
WINAPI
IcmpCloseHandle
(
HANDLE
IcmpHandle
)
{
icmp_t
*
icp
=
(
icmp_t
*
)
IcmpHandle
;
if
(
IcmpHandle
==
INVALID_HANDLE_VALUE
)
{
/* FIXME: in fact win98 seems to ignore the handle value !!! */
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
ISOCK_shutdown
(
icp
->
sid
,
2
);
free
(
icp
);
...
...
@@ -217,6 +222,12 @@ DWORD WINAPI IcmpSendEcho(
unsigned
short
id
,
seq
,
cksum
;
int
res
;
if
(
IcmpHandle
==
INVALID_HANDLE_VALUE
)
{
/* FIXME: in fact win98 seems to ignore the handle value !!! */
SetLastError
(
ERROR_INVALID_HANDLE
);
return
0
;
}
if
(
ReplySize
<
sizeof
(
ICMP_ECHO_REPLY
)
+
ICMP_MINLEN
)
{
SetLastError
(
IP_BUF_TOO_SMALL
);
return
0
;
...
...
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