Fix never met condition

(descriptor & 0x10)==1 could never be met, it would return 0x10 or 0x00

CID 2567
This commit is contained in:
Philippe Saint-Pierre
2011-11-27 18:42:17 -05:00
parent 4d5d809045
commit 9f66f05b58
@@ -340,7 +340,7 @@ identify_tga_header(BPositionIO *inSource, translator_info *outInfo,
imagespec.descriptor = buf[17];
// images ordered from Right to Left (rather than Left to Right)
// are not supported
if ((imagespec.descriptor & TGA_ORIGIN_HORZ_BIT) == TGA_ORIGIN_RIGHT)
if ((imagespec.descriptor & TGA_ORIGIN_HORZ_BIT) != TGA_ORIGIN_LEFT)
return B_NO_TRANSLATOR;
// unused descriptor bits, these bits must be zero
if (imagespec.descriptor & TGA_DESC_BITS76)