diff options
Diffstat (limited to 'tiff/contrib/win_dib/tiff2dib.c')
-rw-r--r-- | tiff/contrib/win_dib/tiff2dib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tiff/contrib/win_dib/tiff2dib.c b/tiff/contrib/win_dib/tiff2dib.c index 475ef304..2fa2de69 100644 --- a/tiff/contrib/win_dib/tiff2dib.c +++ b/tiff/contrib/win_dib/tiff2dib.c @@ -106,6 +106,8 @@ HDIB LoadTIFFinDIB(LPSTR lpFileName) if (lpDIB) lpBits = FindDIBBits((LPSTR) lpDIB); + else + lpBits = NULL; //In the tiff file the lines are save from up to down //In a DIB the lines must be save from down to up |