summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/registry/patchfile.c2
-rw-r--r--source4/lib/registry/pyregistry.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/patchfile.c b/source4/lib/registry/patchfile.c
index d91516cdc9..c3395d4204 100644
--- a/source4/lib/registry/patchfile.c
+++ b/source4/lib/registry/patchfile.c
@@ -434,7 +434,7 @@ static WERROR reg_diff_apply_del_key(void *_ctx, const char *key_name)
/* therefore all children recursively and the "WERR_BADFILE" result is */
/* expected. */
- reg_key_del_abs(ctx, key_name);
+ reg_key_del_abs(ctx, ctx, key_name);
return WERR_OK;
}
diff --git a/source4/lib/registry/pyregistry.c b/source4/lib/registry/pyregistry.c
index 4c42dad6bf..53580bd371 100644
--- a/source4/lib/registry/pyregistry.c
+++ b/source4/lib/registry/pyregistry.c
@@ -61,7 +61,7 @@ static PyObject *py_key_del_abs(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "s", &path))
return NULL;
- result = reg_key_del_abs(ctx, path);
+ result = reg_key_del_abs(NULL, ctx, path);
PyErr_WERROR_IS_ERR_RAISE(result);
Py_RETURN_NONE;