mirror of
https://github.com/samba-team/samba.git
synced 2025-12-02 00:23:50 +03:00
r21385: Regenerate IDL after pidl changes, sync winreg.idl from samba4.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
a6b55beae7
commit
b84370513f
@@ -445,22 +445,22 @@ WERROR _winreg_EnumValue(pipes_struct *p, struct winreg_EnumValue *r)
|
||||
}
|
||||
|
||||
if (r->out.data != NULL) {
|
||||
if ((r->out.data_size == NULL) || (r->out.value_length == NULL)) {
|
||||
if ((r->out.size == NULL) || (r->out.length == NULL)) {
|
||||
return WERR_INVALID_PARAM;
|
||||
}
|
||||
|
||||
if (value_blob.length > *r->out.data_size) {
|
||||
if (value_blob.length > *r->out.size) {
|
||||
return WERR_MORE_DATA;
|
||||
}
|
||||
|
||||
memcpy( r->out.data, value_blob.data, value_blob.length );
|
||||
}
|
||||
|
||||
if (r->out.value_length != NULL) {
|
||||
*r->out.value_length = value_blob.length;
|
||||
if (r->out.length != NULL) {
|
||||
*r->out.length = value_blob.length;
|
||||
}
|
||||
if (r->out.data_size != NULL) {
|
||||
*r->out.data_size = value_blob.length;
|
||||
if (r->out.size != NULL) {
|
||||
*r->out.size = value_blob.length;
|
||||
}
|
||||
|
||||
return WERR_OK;
|
||||
|
||||
Reference in New Issue
Block a user