[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: Fix oleaut32/olepicture
From: Alexandre Julliard <julliard () wine ! codeweavers ! com>
Date: 2003-04-29 23:21:48
[Download RAW message or body]
Maxime Bellengé <maxime.bellenge@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@winehq.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic