# HG changeset patch # User Matti Hamalainen # Date 1558944741 -10800 # Node ID c1a9519a619ff4b63257de71611e3ab6ca48fb3f # Parent cffadb7454842226fe805d0bc5db2cf479af1bdb Fix ECI palette setting, return value of dmSetMixedColorC64Palette() had changed from boolean to int, and was not properly checked for DMERR_OK. diff -r cffadb745484 -r c1a9519a619f tools/lib64fmts.c --- 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); }