diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/registry/patchfile.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/registry/patchfile.c b/source4/lib/registry/patchfile.c index cc17ab320d..6b08cf8948 100644 --- a/source4/lib/registry/patchfile.c +++ b/source4/lib/registry/patchfile.c @@ -280,6 +280,15 @@ _PUBLIC_ WERROR reg_generate_diff(struct registry_context *ctx1, continue; } + if ((r1 == NULL) && (r2 != NULL)) { + callbacks->add_key(callback_data, + reg_predefined_keys[i].name); + } + if ((r1 != NULL) && (r2 == NULL)) { + callbacks->del_key(callback_data, + reg_predefined_keys[i].name); + } + error = reg_generate_diff_key(r1, r2, reg_predefined_keys[i].name, callbacks, callback_data); |