[Win32k]
authorJames Tabor <james.tabor@reactos.org>
Wed, 29 Sep 2010 05:23:15 +0000 (05:23 +0000)
committerJames Tabor <james.tabor@reactos.org>
Wed, 29 Sep 2010 05:23:15 +0000 (05:23 +0000)
- Return the correct complexity, pass all user32 wine test_winregion tests.

svn path=/trunk/; revision=48930

reactos/subsystems/win32/win32k/ntuser/window.c

index c98feef..1e71a1c 100644 (file)
@@ -4225,7 +4225,7 @@ IntGetWindowRgn(PWINDOW_OBJECT Window, HRGN hRgn)
 
    if((pRgn = RGNOBJAPI_Lock(hRgn, NULL)))
    {
-      Ret = pRgn->rdh.iType;
+      Ret = REGION_Complexity(pRgn);
       RGNOBJAPI_Unlock(pRgn);
    }
    else
@@ -4264,7 +4264,7 @@ IntGetWindowRgnBox(PWINDOW_OBJECT Window, RECTL *Rect)
 
    if((pRgn = RGNOBJAPI_Lock(VisRgn, NULL)))
    {
-      Ret = pRgn->rdh.iType;
+      Ret = REGION_Complexity(pRgn);
       *Rect = pRgn->rdh.rcBound;
       RGNOBJAPI_Unlock(pRgn);
    }