23 Feb
2011
23 Feb
'11
6:43 p.m.
Vitaly Perov <vitperov(a)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. -- Alexandre Julliard julliard(a)winehq.org