mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r21164: Fix from Martin Zielinski <mz@seh.de> for EnumprinterdataEX
on Vista.
Jeremy.
(This used to be commit b16707a861
)
This commit is contained in:
parent
317d005142
commit
3ad849db21
@ -9521,6 +9521,15 @@ WERROR _spoolss_enumprinterdataex(pipes_struct *p, SPOOL_Q_ENUMPRINTERDATAEX *q_
|
||||
|
||||
/* housekeeping information in the reply */
|
||||
|
||||
/* Fix from Martin Zielinski <mz@seh.de> - ensure
|
||||
* the hand marshalled container size is a multiple
|
||||
* of 4 bytes for RPC alignment.
|
||||
*/
|
||||
|
||||
if (needed % 4) {
|
||||
needed += 4-(needed % 4);
|
||||
}
|
||||
|
||||
r_u->needed = needed;
|
||||
r_u->returned = num_entries;
|
||||
|
||||
@ -9533,15 +9542,6 @@ WERROR _spoolss_enumprinterdataex(pipes_struct *p, SPOOL_Q_ENUMPRINTERDATAEX *q_
|
||||
|
||||
r_u->ctr.size = r_u->needed;
|
||||
|
||||
/* Fix from Martin Zielinski <mz@seh.de> - ensure
|
||||
* the hand marshalled container size is a multiple
|
||||
* of 4 bytes for RPC alignment.
|
||||
*/
|
||||
|
||||
if (needed % 4) {
|
||||
r_u->ctr.size += 4-(needed % 4);
|
||||
}
|
||||
|
||||
r_u->ctr.size_of_array = r_u->returned;
|
||||
r_u->ctr.values = enum_values;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user