s3: Lift the smbd_messaging_context from winreg_printer_getform1
[amitay/samba.git] / source3 / rpc_server / srv_spoolss_util.c
index c20040ffc5a6ce4c4f44cb3c87ec2c7657317555..90dceb467835758f6d3db0dbc09f2f31215b3a57 100644 (file)
@@ -3633,6 +3633,7 @@ done:
 
 WERROR winreg_printer_getform1(TALLOC_CTX *mem_ctx,
                               struct auth_serversupplied_info *server_info,
+                              struct messaging_context *msg_ctx,
                               const char *form_name,
                               struct spoolss_FormInfo1 *r)
 {
@@ -3668,7 +3669,7 @@ WERROR winreg_printer_getform1(TALLOC_CTX *mem_ctx,
 
        result = winreg_printer_openkey(tmp_ctx,
                                        server_info,
-                                       smbd_messaging_context(),
+                                       msg_ctx,
                                        &winreg_pipe,
                                        TOP_LEVEL_CONTROL_FORMS_KEY,
                                        "",