From 1ed896407f8109348de7f138c1f00dddeb19df67 Mon Sep 17 00:00:00 2001 From: Wilco Baan Hofman Date: Tue, 27 Jul 2010 17:21:48 +0200 Subject: Make sure we write the value stored in value, not line (doublequoted). Signed-off-by: Jelmer Vernooij --- source4/lib/registry/patchfile_dotreg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/registry/patchfile_dotreg.c b/source4/lib/registry/patchfile_dotreg.c index bed89d30bb..e0b04da908 100644 --- a/source4/lib/registry/patchfile_dotreg.c +++ b/source4/lib/registry/patchfile_dotreg.c @@ -271,14 +271,14 @@ _PUBLIC_ WERROR reg_dotreg_diff_load(int fd, /* Delete value */ if (p[0] == '-') { error = callbacks->del_value(callback_data, - curkey, line); + curkey, value); /* Ignore if key does not exist (WERR_BADFILE) * Consistent with Windows behaviour */ if (!W_ERROR_IS_OK(error) && !W_ERROR_EQUAL(error, WERR_BADFILE)) { DEBUG(0, ("Error deleting value %s in key %s\n", - line, curkey)); + value, curkey)); talloc_free(mem_ctx); return error; } @@ -323,11 +323,11 @@ _PUBLIC_ WERROR reg_dotreg_diff_load(int fd, return WERR_GENERAL_FAILURE; } - error = callbacks->set_value(callback_data, curkey, line, + error = callbacks->set_value(callback_data, curkey, value, value_type, data); if (!W_ERROR_IS_OK(error)) { DEBUG(0, ("Error setting value for %s in %s\n", - line, curkey)); + value, curkey)); talloc_free(mem_ctx); return error; } -- cgit