From 2164ba51e299dd2f2829620d5616cd04a0a837f4 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Thu, 8 Apr 2010 12:20:51 +0200 Subject: s4:registry - "patchfile_preg.c" - use "sizeof(uint32_t)" for some size specifications Looks nicer. --- source4/lib/registry/patchfile_preg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/registry') 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); -- cgit