- Fixed over check conditions for deleting regions in set window region.
- Disabled offsets with window region. Fixes wine tests..

svn path=/trunk/; revision=53595
This commit is contained in:
James Tabor
2011-09-04 21:54:57 +00:00
parent b1b3c259e8
commit f34a7454a4
+5 -5
View File
@@ -208,7 +208,7 @@ SetWindowRgn(
if (!Hook)
{
Ret = NtUserSetWindowRgn(hWnd, hRgn, bRedraw);
if (hRgn && Ret)
if (Ret)
DeleteObject(hRgn);
return Ret;
}
@@ -285,10 +285,10 @@ GetWindowRgn(
if (!Ret)
return ERROR;
/*
if (hWnd != GetDesktopWindow()) // pWnd->fnid != FNID_DESKTOP)
Ret = OffsetRgn(hRgn, -pWnd->rcWindow.left, -pWnd->rcWindow.top);
*/
if (pWnd->ExStyle & WS_EX_LAYOUTRTL)
MirrorRgn(hWnd, hRgn);
@@ -319,10 +319,10 @@ GetWindowRgnBox(
if (!Ret)
return ERROR;
/*
if (hWnd != GetDesktopWindow()) // pWnd->fnid != FNID_DESKTOP)
OffsetRect(lprc, -pWnd->rcWindow.left, -pWnd->rcWindow.top);
*/
if (pWnd->ExStyle & WS_EX_LAYOUTRTL)
MirrorWindowRect(pWnd, lprc);