[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: winspool.drv: return maximum possible size of the buffer when no
From: Vitaly Perov <vitperov () etersoft ! ru>
Date: 2011-02-25 13:38:59
Message-ID: 201102251638.59794.vitperov () etersoft ! ru
[Download RAW message or body]
В сообщении от 23 февраля 2011 21:43:49 автор Alexandre Julliard написал:
> Vitaly Perov <vitperov@etersoft.ru> writes:
> > @@ -7247,7 +7247,7 @@ static BOOL get_job_info_2(job_t *job, JOB_INFO_2W
> > *ji2, LPBYTE buf, DWORD cbBuf
> >
> > else
> > {
> >
> > /* align DEVMODE to a DWORD boundary */
> >
> > - shift= (4 - ( (DWORD_PTR) ptr & 3)) & 3;
> > + shift= ptr ? (4 - ( (DWORD_PTR) ptr & 3)) & 3 : 3;
>
> It should most likely align from the start of the data, not from the
> pointer value.
I use convert_printerinfo_W_to_A() function as an example. It aligns DEVMODE
to a DWORD boundary from the pointer value.
--
Best regards,
Vitaly Perov
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic