summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-06-08 12:00:46 +0200
committerGünther Deschner <gd@samba.org>2011-06-08 12:00:54 +0200
commit47ea009e86a2a4499e216d97e5b64cc9e52a27ad (patch)
treeb9272dc89b20eb9789655bf081b4fa66277e912d /source3
parent4fa51257b283c2e8bb415cc7f9c001d64c8a2669 (diff)
downloadsamba-47ea009e86a2a4499e216d97e5b64cc9e52a27ad.tar.gz
samba-47ea009e86a2a4499e216d97e5b64cc9e52a27ad.tar.bz2
samba-47ea009e86a2a4499e216d97e5b64cc9e52a27ad.zip
s3-spoolss: fix -Wunused-but-set-variable build warning in _spoolss_EnumPrintProcDataTypes().
We were in fact ignoring the error code here. Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_nt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c
index 52e4ab0a72..a946bc91d0 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_nt.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c
@@ -8831,6 +8831,10 @@ WERROR _spoolss_EnumPrintProcDataTypes(struct pipes_struct *p,
return WERR_UNKNOWN_LEVEL;
}
+ if (!W_ERROR_IS_OK(result)) {
+ return result;
+ }
+
*r->out.needed = SPOOLSS_BUFFER_UNION_ARRAY(p->mem_ctx,
spoolss_EnumPrintProcDataTypes,
*r->out.info, r->in.level,