Pass a zero instead of dereferencing a null pointer when copying one region

svn path=/trunk/; revision=42891
This commit is contained in:
Gregor Schneider 2009-08-23 22:47:32 +00:00
parent 331c3994d5
commit 9ef29fde4b

View file

@ -111,7 +111,7 @@ MirrorRgnByWidth(HRGN hRgn, INT Width, HRGN *phRgn)
if (phRgn) phRgn = (HRGN *)hRgnex;
else
{
CombineRgn(hRgn, hRgnex, *phRgn, RGN_COPY);
CombineRgn(hRgn, hRgnex, 0, RGN_COPY);
DeleteObject(hRgnex);
}
Ret = 1;