mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[User32]
- 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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user