summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-08-16 16:46:50 +0000
committerGerald Carter <jerry@samba.org>2002-08-16 16:46:50 +0000
commit31514f67ae28844deb85a031fb707bff12dc7b76 (patch)
tree071bec030f64492b30425481a2d70bc26742b8b2
parent4ed429481c6aa2517b8b1615f95900d7db372cd6 (diff)
downloadsamba-31514f67ae28844deb85a031fb707bff12dc7b76.tar.gz
samba-31514f67ae28844deb85a031fb707bff12dc7b76.tar.bz2
samba-31514f67ae28844deb85a031fb707bff12dc7b76.zip
fix small bug in enumprinterdataex due to my changes (still more lurking
though). (This used to be commit 2feb89601fc45dea13fe45a55a9c058726a5de84)
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 2aa11530f8..b6a7eeee6c 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -8113,9 +8113,11 @@ WERROR _spoolss_enumprinterdataex(pipes_struct *p, SPOOL_Q_ENUMPRINTERDATAEX *q_
/* keep track of the size of the array in bytes */
- needed += spoolss_size_printer_enum_values(&enum_values[num_entries]);
+ needed += spoolss_size_printer_enum_values(&enum_values[i]);
}
+ /* housekeeping information in the reply */
+
r_u->needed = needed;
r_u->returned = num_entries;