Mercurial > hg > dmlib
changeset 2127:c1a9519a619f
Fix ECI palette setting, return value of dmSetMixedColorC64Palette() had
changed from boolean to int, and was not properly checked for DMERR_OK.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 27 May 2019 11:12:21 +0300 |
parents | cffadb745484 |
children | a8f5295ab2e7 |
files | tools/lib64fmts.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/lib64fmts.c Mon May 27 10:47:46 2019 +0300 +++ b/tools/lib64fmts.c Mon May 27 11:12:21 2019 +0300 @@ -992,8 +992,9 @@ static int fmtConvertECIBMP2Image(DMImage *dst, const DMC64Image *src, const DMC64ImageFormat *fmt, const DMC64ImageConvSpec *spec) { - if (!dmSetMixedColorC64Palette(dst)) - return DMERR_MALLOC; + int res; + if ((res = dmSetMixedColorC64Palette(dst)) != DMERR_OK) + return res; return dmC64ConvertGenericBMP2Image(dst, src, fmt, spec); }