mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
dhcpcsvc: Use CRT allocation functions.
This commit is contained in:
parent
7c05d39023
commit
2936bb4a29
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue