summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/registry/patchfile_preg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/patchfile_preg.c b/source4/lib/registry/patchfile_preg.c
index c75b08dbe1..19e60fa9ba 100644
--- a/source4/lib/registry/patchfile_preg.c
+++ b/source4/lib/registry/patchfile_preg.c
@@ -120,7 +120,7 @@ static WERROR reg_preg_diff_del_value(void *_data, const char *key_name,
blob.data = (uint8_t *)talloc(data->ctx, uint32_t);
W_ERROR_HAVE_NO_MEMORY(blob.data);
SIVAL(blob.data, 0, 0);
- blob.length = 4;
+ blob.length = sizeof(uint32_t);
werr = reg_preg_diff_set_value(data, key_name, val, REG_DWORD, blob);
@@ -139,7 +139,7 @@ static WERROR reg_preg_diff_del_all_values(void *_data, const char *key_name)
blob.data = (uint8_t *)talloc(data->ctx, uint32_t);
W_ERROR_HAVE_NO_MEMORY(blob.data);
SIVAL(blob.data, 0, 0);
- blob.length = 4;
+ blob.length = sizeof(uint32_t);
werr = reg_preg_diff_set_value(data, key_name, "**DelVals.", REG_DWORD, blob);