svn commit: samba r24023 - in branches: SAMBA_3_2/source/lib
SAMBA_3_2_0/source/lib
gd at samba.org
gd at samba.org
Tue Jul 24 09:42:16 GMT 2007
Author: gd
Date: 2007-07-24 09:42:15 +0000 (Tue, 24 Jul 2007)
New Revision: 24023
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24023
Log:
Correctly support REG_BINARY in registry_push_value() and
registry_pull_value().
Guenther
Modified:
branches/SAMBA_3_2/source/lib/util_reg_api.c
branches/SAMBA_3_2_0/source/lib/util_reg_api.c
Changeset:
Modified: branches/SAMBA_3_2/source/lib/util_reg_api.c
===================================================================
--- branches/SAMBA_3_2/source/lib/util_reg_api.c 2007-07-24 09:32:33 UTC (rev 24022)
+++ branches/SAMBA_3_2/source/lib/util_reg_api.c 2007-07-24 09:42:15 UTC (rev 24023)
@@ -107,8 +107,7 @@
}
break;
case REG_BINARY:
- value->v.binary.data = talloc_move(value, &data);
- value->v.binary.length = length;
+ value->v.binary = data_blob_talloc(mem_ctx, data, length);
break;
default:
err = WERR_INVALID_PARAM;
@@ -148,6 +147,11 @@
}
break;
}
+ case REG_BINARY:
+ *presult = data_blob_talloc(mem_ctx,
+ value->v.binary.data,
+ value->v.binary.length);
+ break;
default:
return WERR_INVALID_PARAM;
}
Modified: branches/SAMBA_3_2_0/source/lib/util_reg_api.c
===================================================================
--- branches/SAMBA_3_2_0/source/lib/util_reg_api.c 2007-07-24 09:32:33 UTC (rev 24022)
+++ branches/SAMBA_3_2_0/source/lib/util_reg_api.c 2007-07-24 09:42:15 UTC (rev 24023)
@@ -107,8 +107,7 @@
}
break;
case REG_BINARY:
- value->v.binary.data = talloc_move(value, &data);
- value->v.binary.length = length;
+ value->v.binary = data_blob_talloc(mem_ctx, data, length);
break;
default:
err = WERR_INVALID_PARAM;
@@ -148,6 +147,11 @@
}
break;
}
+ case REG_BINARY:
+ *presult = data_blob_talloc(mem_ctx,
+ value->v.binary.data,
+ value->v.binary.length);
+ break;
default:
return WERR_INVALID_PARAM;
}
More information about the samba-cvs
mailing list