diff options
author | Gerald Carter <jerry@samba.org> | 2002-04-22 18:48:45 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-04-22 18:48:45 +0000 |
commit | 2699f9b9df3f974a34e40761141361e997638b6c (patch) | |
tree | f903d3690aee0e134f13bd69ed4ebdd0ff0b9bb4 /source3/rpc_server/srv_spoolss_nt.c | |
parent | 6f366b7809375e4d7b061278a739ce541d291a97 (diff) | |
download | samba-2699f9b9df3f974a34e40761141361e997638b6c.tar.gz samba-2699f9b9df3f974a34e40761141361e997638b6c.tar.bz2 samba-2699f9b9df3f974a34e40761141361e997638b6c.zip |
printing merge from HEAD
(This used to be commit d3aed37dd87d425f51bcdc4e5151f0b0fe8f9c6b)
Diffstat (limited to 'source3/rpc_server/srv_spoolss_nt.c')
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 6572e23fbb..322efa22b5 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -5084,7 +5084,7 @@ static WERROR update_printer(pipes_struct *p, POLICY_HND *handle, uint32 level, goto done; } - if (info->info_2->devmode_ptr != 0) { + if (devmode) { /* we have a valid devmode convert it and link it*/ @@ -7807,13 +7807,7 @@ static WERROR getprintprocessordirectory_level_1(UNISTR2 *name, if((info=(PRINTPROCESSOR_DIRECTORY_1 *)malloc(sizeof(PRINTPROCESSOR_DIRECTORY_1))) == NULL) return WERR_NOMEM; - /* Not sure what to return here - are UNC names valid here?. - Windows returns the string: C:\WINNT\System32\spool\PRTPROCS\W32X86 - which is pretty bogus for a RPC. */ - - slprintf(path, sizeof(path)-1, "\\\\%s\\print$\\%s", get_called_name(), short_archi); - - DEBUG(4,("print processor directory: [%s]\n", path)); + pstrcpy(path, "C:\\WINNT\\System32\\spool\\PRTPROCS\\W32X86"); fill_printprocessordirectory_1(info, path); |