Commit 6c465ae8 authored by Tim Clem's avatar Tim Clem Committed by Alexandre Julliard

mountmgr.sys: Always set the return size from dhcp_request implementations.

Also return STATUS_SUCCESS rather than 0 in early-out cases. Signed-off-by: 's avatarTim Clem <tclem@codeweavers.com>
parent 3f36d7e2
......@@ -777,8 +777,9 @@ NTSTATUS dhcp_request( void *args )
ULONG ret = 0;
params->req->offset = params->req->size = 0;
*params->ret_size = 0;
if (!(reply = dhcp4_config_option_request( params->unix_name, map_option(params->req->id), &value ))) return 0;
if (!(reply = dhcp4_config_option_request( params->unix_name, map_option(params->req->id), &value ))) return STATUS_SUCCESS;
switch (params->req->id)
{
......
......@@ -293,18 +293,19 @@ NTSTATUS dhcp_request( void *args )
params->req->offset = 0;
params->req->size = 0;
*params->ret_size = 0;
if (!service_id) return 0;
if (!(dict = SCDynamicStoreCopyDHCPInfo( NULL, service_id )))
{
CFRelease( service_id );
return 0;
return STATUS_SUCCESS;
}
CFRelease( service_id );
if (!(value = DHCPInfoGetOptionData( dict, map_option(params->req->id) )))
{
CFRelease( dict );
return 0;
return STATUS_SUCCESS;
}
len = CFDataGetLength( value );
......
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