aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-02-16 15:18:57 +0000
committermarha <marha@users.sourceforge.net>2011-02-16 15:18:57 +0000
commitd9e2d392319a4807b8a79392ae9c8fd9ca26de9a (patch)
tree92bd033916e8cf3c26e45a1f83cb78cf93e15d33
parentaf02869c907deef944c05df9abdc364706811c08 (diff)
downloadvcxsrv-d9e2d392319a4807b8a79392ae9c8fd9ca26de9a.tar.gz
vcxsrv-d9e2d392319a4807b8a79392ae9c8fd9ca26de9a.tar.bz2
vcxsrv-d9e2d392319a4807b8a79392ae9c8fd9ca26de9a.zip
Do not delete the region given to SetWindowRgn, this is not allowed
-rw-r--r--xorg-server/hw/xwin/winmultiwindowwndproc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/xorg-server/hw/xwin/winmultiwindowwndproc.c b/xorg-server/hw/xwin/winmultiwindowwndproc.c
index 5a1fcd6f5..fe262be61 100644
--- a/xorg-server/hw/xwin/winmultiwindowwndproc.c
+++ b/xorg-server/hw/xwin/winmultiwindowwndproc.c
@@ -393,7 +393,6 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
GetWindowRect(hwnd, &rWindow);
hRgnWindow = CreateRectRgnIndirect(&rWindow);
SetWindowRgn (hwnd, hRgnWindow, TRUE);
- DeleteObject(hRgnWindow);
}
SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)VCXSRV_SIGNATURE);