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
2936bb4a
Commit
2936bb4a
authored
Nov 02, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Nov 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dhcpcsvc: Use CRT allocation functions.
parent
7c05d390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
dhcpcsvc.c
dlls/dhcpcsvc/dhcpcsvc.c
+2
-3
No files found.
dlls/dhcpcsvc/dhcpcsvc.c
View file @
2936bb4a
...
...
@@ -32,7 +32,6 @@
#include "ddk/mountmgr.h"
#include "wine/debug.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dhcpcsvc
);
...
...
@@ -102,7 +101,7 @@ DWORD WINAPI DhcpRequestParams( DWORD flags, void *reserved, WCHAR *adapter, DHC
if
(
mgr
==
INVALID_HANDLE_VALUE
)
return
GetLastError
();
size
=
FIELD_OFFSET
(
struct
mountmgr_dhcp_request_params
,
params
[
recv_params
.
nParams
])
+
*
buflen
;
if
(
!
(
query
=
heap_alloc_zero
(
size
)))
if
(
!
(
query
=
calloc
(
1
,
size
)))
{
err
=
ERROR_OUTOFMEMORY
;
goto
done
;
...
...
@@ -146,7 +145,7 @@ DWORD WINAPI DhcpRequestParams( DWORD flags, void *reserved, WCHAR *adapter, DHC
err
=
ERROR_SUCCESS
;
done:
heap_
free
(
query
);
free
(
query
);
CloseHandle
(
mgr
);
return
err
;
}
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