From 690cc12bad2a037684a43b0dcb48be8eb03aa7bc Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 7 Jan 2002 06:13:40 +0000 Subject: [PATCH] Sed error. The status value in the PRINTER_INFO_2 structure isn't a WERROR but a plain old uint32. --- source/include/nt_printing.h | 2 +- source/include/rpc_spoolss.h | 2 +- source/printing/nt_printing.c | 2 +- source/rpc_parse/parse_spoolss.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/include/nt_printing.h b/source/include/nt_printing.h index 61abc1a31bc..4c9265f09fa 100644 --- a/source/include/nt_printing.h +++ b/source/include/nt_printing.h @@ -231,7 +231,7 @@ typedef struct nt_printer_info_level_2 uint32 default_priority; uint32 starttime; uint32 untiltime; - WERROR status; + uint32 status; uint32 cjobs; uint32 averageppm; fstring servername; diff --git a/source/include/rpc_spoolss.h b/source/include/rpc_spoolss.h index bd9de92dcb7..e6e5e0ada25 100755 --- a/source/include/rpc_spoolss.h +++ b/source/include/rpc_spoolss.h @@ -1314,7 +1314,7 @@ typedef struct spool_printer_info_level_2 uint32 default_priority; uint32 starttime; uint32 untiltime; - WERROR status; + uint32 status; uint32 cjobs; uint32 averageppm; UNISTR2 servername; diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 7c565121730..a0dacc14c57 100644 --- a/source/printing/nt_printing.c +++ b/source/printing/nt_printing.c @@ -2576,7 +2576,7 @@ static uint32 dump_a_printer(NT_PRINTER_INFO_LEVEL printer, uint32 level) DEBUGADD(106,("default_priority:[%d]\n", info2->default_priority)); DEBUGADD(106,("starttime:[%d]\n", info2->starttime)); DEBUGADD(106,("untiltime:[%d]\n", info2->untiltime)); - DEBUGADD(106,("status:[%s]\n", werror_str(info2->status))); + DEBUGADD(106,("status:[%d]\n", info2->status)); DEBUGADD(106,("cjobs:[%d]\n", info2->cjobs)); DEBUGADD(106,("averageppm:[%d]\n", info2->averageppm)); DEBUGADD(106,("changeid:[%d]\n", info2->changeid)); diff --git a/source/rpc_parse/parse_spoolss.c b/source/rpc_parse/parse_spoolss.c index 14e22c4195b..66252c1a194 100644 --- a/source/rpc_parse/parse_spoolss.c +++ b/source/rpc_parse/parse_spoolss.c @@ -4332,7 +4332,7 @@ BOOL spool_io_printer_info_level_2(char *desc, SPOOL_PRINTER_INFO_LEVEL_2 *il, p return False; if(!prs_uint32("untiltime", ps, depth, &il->untiltime)) return False; - if(!prs_werror("status", ps, depth, &il->status)) + if(!prs_uint32("status", ps, depth, &il->status)) return False; if(!prs_uint32("cjobs", ps, depth, &il->cjobs)) return False;