Commit 2936bb4a authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

dhcpcsvc: Use CRT allocation functions.

parent 7c05d390
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "ddk/mountmgr.h" #include "ddk/mountmgr.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(dhcpcsvc); WINE_DEFAULT_DEBUG_CHANNEL(dhcpcsvc);
...@@ -102,7 +101,7 @@ DWORD WINAPI DhcpRequestParams( DWORD flags, void *reserved, WCHAR *adapter, DHC ...@@ -102,7 +101,7 @@ DWORD WINAPI DhcpRequestParams( DWORD flags, void *reserved, WCHAR *adapter, DHC
if (mgr == INVALID_HANDLE_VALUE) return GetLastError(); if (mgr == INVALID_HANDLE_VALUE) return GetLastError();
size = FIELD_OFFSET(struct mountmgr_dhcp_request_params, params[recv_params.nParams]) + *buflen; 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; err = ERROR_OUTOFMEMORY;
goto done; goto done;
...@@ -146,7 +145,7 @@ DWORD WINAPI DhcpRequestParams( DWORD flags, void *reserved, WCHAR *adapter, DHC ...@@ -146,7 +145,7 @@ DWORD WINAPI DhcpRequestParams( DWORD flags, void *reserved, WCHAR *adapter, DHC
err = ERROR_SUCCESS; err = ERROR_SUCCESS;
done: done:
heap_free( query ); free( query );
CloseHandle( mgr ); CloseHandle( mgr );
return err; return err;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment