Pass a zero instead of dereferencing a null pointer when copying one region
authorGregor Schneider <grschneider@gmail.com>
Sun, 23 Aug 2009 22:47:32 +0000 (22:47 +0000)
committerGregor Schneider <grschneider@gmail.com>
Sun, 23 Aug 2009 22:47:32 +0000 (22:47 +0000)
svn path=/trunk/; revision=42891

reactos/dll/win32/gdi32/objects/region.c

index 98dbab0..7dbd970 100644 (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;