s3: Remove procid_self() from srv_spoolss_reply[open|close]printer()
authorVolker Lendecke <vl@samba.org>
Sun, 4 Jul 2010 19:53:52 +0000 (21:53 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 5 Jul 2010 09:06:32 +0000 (11:06 +0200)
source3/rpc_server/srv_spoolss_nt.c

index 9a55336cbedbca64edcafd497fdb9af04ed957c2..3b7b2a62dc17390a29c8c1f629d7cd6a35a8096c 100644 (file)
@@ -186,7 +186,7 @@ static void srv_spoolss_replycloseprinter(int snum, struct policy_handle *handle
                 * printer notify messages. */
 
                serverid_register_msg_flags(
-                       procid_self(),
+                       messaging_server_id(smbd_messaging_context()),
                        false, FLAG_MSG_PRINT_NOTIFY);
        }
 
@@ -2359,7 +2359,7 @@ static bool srv_spoolss_replyopenprinter(int snum, const char *printer,
                /* Tell the connections db we're now interested in printer
                 * notify messages. */
                serverid_register_msg_flags(
-                       procid_self(),
+                       messaging_server_id(smbd_messaging_context()),
                        true, FLAG_MSG_PRINT_NOTIFY);
        }