fix small bug in enumprinterdataex due to my changes (still more lurking
authorGerald Carter <jerry@samba.org>
Fri, 16 Aug 2002 16:46:50 +0000 (16:46 +0000)
committerGerald Carter <jerry@samba.org>
Fri, 16 Aug 2002 16:46:50 +0000 (16:46 +0000)
though).
(This used to be commit 2feb89601fc45dea13fe45a55a9c058726a5de84)

source3/rpc_server/srv_spoolss_nt.c

index 2aa11530f80032c8ef854d95aad451fd9bdec700..b6a7eeee6cfc6a6f7058fd8af71fec283e5f5a5e 100644 (file)
@@ -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;