egcs 'ambiguous else' warnings fixes.
diff --git a/objects/dib.c b/objects/dib.c
index 372a44f..65dd28f 100644
--- a/objects/dib.c
+++ b/objects/dib.c
@@ -2090,10 +2090,12 @@
if (!res || !bmp || !dib || !bm.bmBits || (bm.bmBitsPixel <= 8 && !colorMap))
{
if (bm.bmBits)
+ {
if (section)
UnmapViewOfFile(bm.bmBits), bm.bmBits = NULL;
else
VirtualFree(bm.bmBits, MEM_RELEASE, 0L), bm.bmBits = NULL;
+ }
if (dib->image) XDestroyImage(dib->image), dib->image = NULL;
if (colorMap) HeapFree(GetProcessHeap(), 0, colorMap), colorMap = NULL;
@@ -2125,10 +2127,12 @@
DIBSECTIONOBJ *dib = bmp->dib;
if (dib->dibSection.dsBm.bmBits)
+ {
if (dib->dibSection.dshSection)
UnmapViewOfFile(dib->dibSection.dsBm.bmBits);
else
VirtualFree(dib->dibSection.dsBm.bmBits, MEM_RELEASE, 0L);
+ }
if (dib->image)
XDestroyImage( dib->image );