diff options
author | Jeremy Allison <jra@samba.org> | 2001-02-28 01:38:12 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-02-28 01:38:12 +0000 |
commit | 70beabf73bdaad7b6a60e24b7a11798a411bed02 (patch) | |
tree | 95ceceb182bc30e29c79ebb7023e09d691dc8762 /source/rpc_server/srv_spoolss.c | |
parent | 8171cc56428920d8b765d077198893201f68766e (diff) | |
download | samba-70beabf73bdaad7b6a60e24b7a11798a411bed02.tar.gz samba-70beabf73bdaad7b6a60e24b7a11798a411bed02.tar.xz samba-70beabf73bdaad7b6a60e24b7a11798a411bed02.zip |
Ooops - forgot to check the rpcclient and smbcacls compile with the new
code :-(.
Jeremy.
Diffstat (limited to 'source/rpc_server/srv_spoolss.c')
-rwxr-xr-x | source/rpc_server/srv_spoolss.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source/rpc_server/srv_spoolss.c b/source/rpc_server/srv_spoolss.c index 91107e9dbe9..4bd70ca7551 100755 --- a/source/rpc_server/srv_spoolss.c +++ b/source/rpc_server/srv_spoolss.c @@ -6,6 +6,7 @@ * Copyright (C) Andrew Tridgell 1992-2000, * Copyright (C) Luke Kenneth Casson Leighton 1996-2000, * Copyright (C) Jean François Micouleau 1998-2000. + * Copyright (C) Jeremy Allison 2001. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -313,6 +314,7 @@ static BOOL api_spoolss_enumprinters(pipes_struct *p) * called from the spoolss dispatcher * ********************************************************************/ + static BOOL api_spoolss_getprinter(pipes_struct *p) { SPOOL_Q_GETPRINTER q_u; @@ -328,12 +330,7 @@ static BOOL api_spoolss_getprinter(pipes_struct *p) return False; } - /* that's an [in out] buffer */ - new_spoolss_move_buffer(q_u.buffer, &r_u.buffer); - - r_u.status = _spoolss_getprinter(&q_u.handle, q_u.level, - r_u.buffer, q_u.offered, - &r_u.needed); + r_u.status = _spoolss_getprinter(p, &q_u, &r_u); if(!spoolss_io_r_getprinter("",&r_u,rdata,0)) { DEBUG(0,("spoolss_io_r_getprinter: unable to marshall SPOOL_R_GETPRINTER.\n")); |