On Tuesday, March 15, 2016, Alexandre Julliard <julliard@winehq.org javascript:_e(%7B%7D,'cvml','julliard@winehq.org');> wrote:
Bruno Jesus 00cpxxx@gmail.com writes:
@@ -1647,27 +1655,33 @@ static LRESULT DecompressBegin(CodecInfo *pi,
LPCBITMAPINFOHEADER lpbiIn,
if (lpbiIn->biCompression != BI_RGB) {
- int colors;
- if (lpbiIn->biClrUsed == 0)
colors = 1 << lpbiIn->biBitCount;
- else
colors = lpbiIn->biClrUsed;
I don't think you want to do that for biBitCount > 8.
I'm not near the source code now but AFAIR DecompressQuery would refuse such bitmap because it does not support biClrUsed > 0 when bit count > 8. But I will clarify that in a third version, certainly it would be a waste of memory to allocate memory unnecessarely.