From 051c8519fa98311fede6f05c68ecaa9561833a89 Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Fri, 1 Oct 2004 14:32:48 +0000 Subject: [PATCH] #261647 r=mkaply, sr=blizzard, a=mkaply Patch from Dainis Jonitis - make sure to initialize RGNRECT --- gfx/src/os2/nsRegionOS2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/src/os2/nsRegionOS2.cpp b/gfx/src/os2/nsRegionOS2.cpp index 9e6e53669533..17c1bd05ccc7 100644 --- a/gfx/src/os2/nsRegionOS2.cpp +++ b/gfx/src/os2/nsRegionOS2.cpp @@ -54,7 +54,10 @@ nsresult nsRegionOS2::GetNativeRegion (void *&aRegion) const PRUint32 nsRegionOS2::NumOfRects (HPS aPS, HRGN aRegion) const { RGNRECT rgnRect; + rgnRect.ircStart = 1; + rgnRect.crc = 0xFFFFFFFF; rgnRect.crcReturned = 0; + rgnRect.ulDirection = RECTDIR_LFRT_TOPBOT; GFX (::GpiQueryRegionRects (aPS, aRegion, NULL, &rgnRect, NULL), FALSE);