/*!
- * @file readbits.c
+ * @file readdib.c
* @brief Windows用ビットマップファイル読み込み処理パッケージ /
* This package provides a routine to read a DIB file and set up the device dependent version of the image.
* @date 2014/08/08
goto ErrExit;
}
- if (!(nNumColors = (WORD)lpbi->biClrUsed))
+ nNumColors = (WORD)lpbi->biClrUsed;
+ if (!nNumColors)
{
/* no color table for 24-bit, default size otherwise */
if (lpbi->biBitCount != 24)