diff options
author | Jeremy Allison <jra@samba.org> | 2002-09-05 12:55:56 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-09-05 12:55:56 +0000 |
commit | 4cf52385994b62de71240b894b37f82b6daa6ee2 (patch) | |
tree | adf33971f3f9b28d0f8de8e7abbe116a02404f31 /source3/printing | |
parent | 4af9c9ce3b312131ba767ba27b5cd5b12d6a6007 (diff) | |
download | samba-4cf52385994b62de71240b894b37f82b6daa6ee2.tar.gz samba-4cf52385994b62de71240b894b37f82b6daa6ee2.tar.bz2 samba-4cf52385994b62de71240b894b37f82b6daa6ee2.zip |
Revert the "reverse" change to rpc_server/srv_spoolss_nt.c, simply
add then entries to the end of the list in printing/notify.c using
DLIST_ADD_END.
Jeremy.
(This used to be commit 047d6a05fb60172a2607bb7d7d03dda5403c61fa)
Diffstat (limited to 'source3/printing')
-rw-r--r-- | source3/printing/notify.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c index 728ef47d8a..003718ed72 100644 --- a/source3/printing/notify.c +++ b/source3/printing/notify.c @@ -102,7 +102,7 @@ static void send_spoolss_notify2_msg(struct spoolss_notify_msg *msg) { char *buf = NULL; size_t buflen = 0, len; - struct notify_queue *pnqueue; + struct notify_queue *pnqueue, *tmp_ptr; /* Let's not waste any time with this */ @@ -155,7 +155,11 @@ again: DEBUG(5, ("send_spoolss_notify2_msg: appending message 0x%02x/0x%02x to notify_queue_head\n", msg->type, msg->field)); - DLIST_ADD(notify_queue_head, pnqueue); + /* Note we add to the end of the list to ensure + * the messages are sent in the order they were received. JRA. + */ + DLIST_ADD_END(notify_queue_head, pnqueue, tmp_ptr); + return; fail: |