Specify event_context to ldb_wrap_connect explicitly.
[samba.git] / source4 / scripting / ejs / smbcalls_reg.c
index fee11b66d96d7d4acd15553c7cc41b0e42dbb56c..ed8653d3a7b3b46c3faefde2a8c7eb05bc2bb900 100644 (file)
@@ -54,7 +54,7 @@ static int ejs_apply_patchfile(MprVarHandle eid, int argc, struct MprVar **argv)
                return -1;
        }
        
-       error = reg_diff_apply(mprToString(argv[0]), rctx);
+       error = reg_diff_apply(rctx, mprToString(argv[0]));
 
        mpr_Return(eid, mprWERROR(error));
 
@@ -70,7 +70,7 @@ static int ejs_reg_open(MprVarHandle eid, int argc, struct MprVar **argv)
        struct registry_context *rctx;
        WERROR error;
 
-       error = reg_open_samba(mprMemCtx(), &rctx, global_loadparm, NULL, NULL);
+       error = reg_open_samba(mprMemCtx(), &rctx, mprEventCtx(), mprLpCtx(), NULL, NULL);
        SMB_ASSERT(W_ERROR_IS_OK(error));
 
        mprSetPtrChild(reg, "registry", rctx);