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
ebbdbff5
Commit
ebbdbff5
authored
Sep 09, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ping: Use CRT allocation functions.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
47023274
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
ping_main.c
programs/ping/ping_main.c
+3
-4
No files found.
programs/ping/ping_main.c
View file @
ebbdbff5
...
...
@@ -32,7 +32,6 @@
#include <windows.h>
#include "wine/debug.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ping
);
...
...
@@ -164,10 +163,10 @@ int __cdecl main(int argc, char** argv)
icmp_file
=
IcmpCreateFile
();
send_data
=
heap_alloc_zero
(
l
);
send_data
=
calloc
(
1
,
l
);
reply_size
=
sizeof
(
ICMP_ECHO_REPLY
)
+
l
+
8
;
/* The buffer has to hold 8 more bytes of data (the size of an ICMP error message). */
reply_buffer
=
heap_
alloc
(
reply_size
);
reply_buffer
=
m
alloc
(
reply_size
);
if
(
reply_buffer
==
NULL
)
{
printf
(
"Unable to allocate memory to reply buffer.
\n
"
);
...
...
@@ -218,6 +217,6 @@ int __cdecl main(int argc, char** argv)
min
,
max
,
avg
);
}
heap_
free
(
reply_buffer
);
free
(
reply_buffer
);
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