1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-01 21:18:10 +03:00

r18932: In RegEnumvalue() and RegQueryValue(), the output buffer

size must match the real value of the data.
(This used to be commit e11108024a)
This commit is contained in:
Gerald Carter 2006-09-26 22:03:52 +00:00 committed by Gerald (Jerry) Carter
parent 49c73b5734
commit 855d12e567

View File

@ -479,6 +479,8 @@ WERROR _winreg_QueryValue(pipes_struct *p, struct policy_handle *handle, struct
memcpy( data, regval_data_p(val), *value_length );
status = WERR_OK;
}
*data_size = *value_length;
}
TALLOC_FREE( regvals );
@ -626,6 +628,8 @@ WERROR _winreg_EnumValue(pipes_struct *p, struct policy_handle *handle, uint32_t
status = WERR_OK;
}
*data_size = *value_length;
done:
free_registry_value( val );