s3: Lift the smbd_messaging_context from winreg_add_driver
authorVolker Lendecke <vl@samba.org>
Sun, 8 Aug 2010 08:47:35 +0000 (10:47 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 8 Aug 2010 14:03:18 +0000 (16:03 +0200)
source3/rpc_server/srv_spoolss_nt.c
source3/rpc_server/srv_spoolss_util.c
source3/rpc_server/srv_spoolss_util.h

index d066369b1acba3e0719d63376dfb83161291c27d..04208d526736e2cd1a1d54ac70bab08cc7596aeb 100644 (file)
@@ -7473,7 +7473,7 @@ WERROR _spoolss_AddPrinterDriverEx(struct pipes_struct *p,
                goto done;
        }
 
-       err = winreg_add_driver(p->mem_ctx, p->server_info,
+       err = winreg_add_driver(p->mem_ctx, p->server_info, p->msg_ctx,
                                 r->in.info_ctr, &driver_name, &version);
        if (!W_ERROR_IS_OK(err)) {
                goto done;
index 90dceb467835758f6d3db0dbc09f2f31215b3a57..ac32fbc4549fb849a1532d668e399777b64df96d 100644 (file)
@@ -3767,6 +3767,7 @@ done:
 
 WERROR winreg_add_driver(TALLOC_CTX *mem_ctx,
                         struct auth_serversupplied_info *server_info,
+                        struct messaging_context *msg_ctx,
                         struct spoolss_AddDriverInfoCtr *r,
                         const char **driver_name,
                         uint32_t *driver_version)
@@ -3794,7 +3795,7 @@ WERROR winreg_add_driver(TALLOC_CTX *mem_ctx,
 
        result = winreg_printer_opendriver(tmp_ctx,
                                           server_info,
-                                          smbd_messaging_context(),
+                                          msg_ctx,
                                           info8.driver_name,
                                           info8.architecture,
                                           info8.version,
index c9e27abafd6267eb3f7e1a461b754d90db5b26ad..6dfdc25da6e07f842d1e71a2c9012eea3a4b9719 100644 (file)
@@ -510,6 +510,7 @@ WERROR winreg_printer_getform1(TALLOC_CTX *mem_ctx,
  */
 WERROR winreg_add_driver(TALLOC_CTX *mem_ctx,
                         struct auth_serversupplied_info *server_info,
+                        struct messaging_context *msg_ctx,
                         struct spoolss_AddDriverInfoCtr *r,
                         const char **driver_name,
                         uint32_t *driver_version);