Author: gschneider
Date: Mon Aug 24 00:47:32 2009
New Revision: 42891
URL:
http://svn.reactos.org/svn/reactos?rev=42891&view=rev
Log:
Pass a zero instead of dereferencing a null pointer when copying one region
Modified:
trunk/reactos/dll/win32/gdi32/objects/region.c
Modified: trunk/reactos/dll/win32/gdi32/objects/region.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/re…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/region.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/region.c [iso-8859-1] Mon Aug 24 00:47:32 2009
@@ -111,7 +111,7 @@
if (phRgn) phRgn = (HRGN *)hRgnex;
else
{
- CombineRgn(hRgn, hRgnex, *phRgn, RGN_COPY);
+ CombineRgn(hRgn, hRgnex, 0, RGN_COPY);
DeleteObject(hRgnex);
}
Ret = 1;