contrib/win_dib/tiff2dib: fix Uninitialized variable: lpBits

fixes #52
http://bugzilla.maptools.org/show_bug.cgi?id=2469
This commit is contained in:
Thomas Bernard 2020-03-09 09:08:07 +01:00
parent dce4bb0da5
commit 70b8c095f8
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -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