diff options
author | Andreas Schneider <asn@samba.org> | 2011-07-28 11:34:08 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-07-28 15:08:42 +0200 |
commit | 5fa9fe39ea30c210bfb2ab10cfc796ec4b521f78 (patch) | |
tree | 498e56e04da656c3712c724612eb6dc19d4b9976 /source3/rpc_server/spoolss | |
parent | 553124a663379335b401a56e498432d198b3d8e3 (diff) | |
download | samba-5fa9fe39ea30c210bfb2ab10cfc796ec4b521f78.tar.gz samba-5fa9fe39ea30c210bfb2ab10cfc796ec4b521f78.tar.bz2 samba-5fa9fe39ea30c210bfb2ab10cfc796ec4b521f78.zip |
s3-spoolss: Use existing handle in printer_driver_in_use().
Diffstat (limited to 'source3/rpc_server/spoolss')
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_nt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index afd78f1f59..79e62c4fd3 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -2142,8 +2142,7 @@ WERROR _spoolss_DeletePrinterDriver(struct pipes_struct *p, } if (printer_driver_in_use(tmp_ctx, - get_session_info_system(), - p->msg_ctx, + b, info)) { status = WERR_PRINTER_DRIVER_IN_USE; goto done; @@ -2260,8 +2259,7 @@ WERROR _spoolss_DeletePrinterDriverEx(struct pipes_struct *p, } if (printer_driver_in_use(tmp_ctx, - get_session_info_system(), - p->msg_ctx, + b, info)) { status = WERR_PRINTER_DRIVER_IN_USE; goto done; |