USER32: Don't touch the rect if hwnd is invalid.
Mike McCormack
mike at codeweavers.com
Mon Jan 3 22:51:02 CST 2005
Apparently Quicken depends on this.
Mike
ChangeLog:
Huw Davies <huw at codeweavers.com>
Don't touch the rect if hwnd is invalid.
-------------- next part --------------
Index: windows/winpos.c
===================================================================
RCS file: /home/wine/wine/windows/winpos.c,v
retrieving revision 1.158
diff -u -r1.158 winpos.c
--- windows/winpos.c 8 Dec 2004 18:06:14 -0000 1.158
+++ windows/winpos.c 4 Jan 2005 04:46:08 -0000
@@ -281,13 +281,14 @@
{
BOOL ret;
- rect->right = rect->bottom = 0;
if ((ret = WIN_GetRectangles( hwnd, NULL, rect )))
{
rect->right -= rect->left;
rect->bottom -= rect->top;
+ rect->left = rect->top = 0;
+ TRACE( "hwnd %p (%ld,%ld)-(%ld,%ld)\n",
+ hwnd, rect->left, rect->top, rect->right, rect->bottom);
}
- rect->left = rect->top = 0;
return ret;
}
More information about the wine-patches
mailing list