Fix oleaut32/olepicture
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Apr 29 18:21:48 CDT 2003
Maxime Bellengé <maxime.bellenge at laposte.net> writes:
> + bits = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,
> + (jd.output_height+1)*(jd.output_width+jd.output_width%sizeof(DWORD))*jd.output_components);
> samprow=HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,jd.output_width*jd.output_components);
> +
> + oldbits = bits;
> + oldsamprow = samprow;
> + padding = jd.output_width%sizeof(DWORD);
The computations of the total width and of the padding are wrong,
"width % sizeof(DWORD)" doesn't yield the result you want.
--
Alexandre Julliard
julliard at winehq.com
More information about the wine-devel
mailing list