OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
#37287 #37353 (2.2.0.89) 型の置換を継続中。 / Ongoing type replacement.
[hengband/hengband.git]
/
src
/
readdib.c
diff --git
a/src/readdib.c
b/src/readdib.c
index
559e297
..
b3a493d
100644
(file)
--- a/
src/readdib.c
+++ b/
src/readdib.c
@@
-273,7
+273,8
@@
BOOL ReadDIB(HWND hWnd, LPSTR lpFileName, DIBINIT *pInfo)
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)