1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

The first of Martin Zielinski <mz@seh.de> Vista printing patches.

Jerry will test and should get into 3.2 final (and the next 3.0.x
release).
Jeremy.
(This used to be commit 3fc1ab210b8772ee9f867499c0b1a7bb4bcdd285)
This commit is contained in:
Jeremy Allison 2008-04-24 14:04:47 -07:00
parent 051ff45c60
commit 189eb93b73
2 changed files with 12 additions and 4 deletions

View File

@ -2129,7 +2129,12 @@ static bool smb_io_reldevmode(const char *desc, RPC_BUFFER *buffer, int depth, D
} }
buffer->string_at_end -= ((*devmode)->size + (*devmode)->driverextra); buffer->string_at_end -= ((*devmode)->size + (*devmode)->driverextra);
/* mz: we have to align the device mode for VISTA */
if (buffer->string_at_end % 4) {
buffer->string_at_end += 4 - (buffer->string_at_end % 4);
}
if(!prs_set_offset(ps, buffer->string_at_end)) if(!prs_set_offset(ps, buffer->string_at_end))
return False; return False;

View File

@ -9626,13 +9626,16 @@ WERROR _spoolss_enumprinterdataex(pipes_struct *p, SPOOL_Q_ENUMPRINTERDATAEX *q_
/* copy data into the reply */ /* copy data into the reply */
r_u->ctr.size = r_u->needed; /* mz: Vista x64 returns 0x6f7 (The stub received bad data), if the
response buffer size is != the offered buffer size
r_u->ctr.size = r_u->needed;
*/
r_u->ctr.size = in_size;
r_u->ctr.size_of_array = r_u->returned; r_u->ctr.size_of_array = r_u->returned;
r_u->ctr.values = enum_values; r_u->ctr.values = enum_values;
done: done:
if ( printer ) if ( printer )
free_a_printer(&printer, 2); free_a_printer(&printer, 2);