Author: fireball
Date: Sat Jan 15 12:10:51 2011
New Revision: 50388
URL:
http://svn.reactos.org/svn/reactos?rev=50388&view=rev
Log:
- Don't use an unitialized rect offset.
Modified:
branches/arwinss/reactos/dll/win32/winent.drv/window.c
Modified: branches/arwinss/reactos/dll/win32/winent.drv/window.c
URL:
http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/dll/win32/winen…
==============================================================================
--- branches/arwinss/reactos/dll/win32/winent.drv/window.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/dll/win32/winent.drv/window.c [iso-8859-1] Sat Jan 15
12:10:51 2011
@@ -680,8 +680,8 @@
if (flags & DCX_CLIPCHILDREN) escape.clip_children = TRUE;
}
- TRACE("hdc %x, hwnd %x, top %x\n win_rect %s, top_rect %s\n", hdc, hwnd,
top,
- wine_dbgstr_rect(win_rect), wine_dbgstr_rect(top_rect));
+ TRACE("hdc %x, hwnd %x, top %x\n win_rect %s, top_rect %s, clipchildren
%d\n", hdc, hwnd, top,
+ wine_dbgstr_rect(win_rect), wine_dbgstr_rect(top_rect), escape.clip_children);
ExtEscape( hdc, NTDRV_ESCAPE, sizeof(escape), (LPSTR)&escape, 0, NULL );
}
@@ -689,7 +689,7 @@
void CDECL RosDrv_ReleaseDC( HWND hwnd, HDC hdc )
{
struct ntdrv_escape_set_drawable escape;
- RECTL virtual_screen_rect;
+ RECT virtual_screen_rect;
escape.code = NTDRV_SET_DRAWABLE;
escape.drawable = root_window;
@@ -701,6 +701,8 @@
virtual_screen_rect.right = GetSystemMetrics(SM_CXVIRTUALSCREEN);
virtual_screen_rect.bottom = GetSystemMetrics(SM_CYVIRTUALSCREEN);
virtual_screen_rect.left = 0; virtual_screen_rect.top = 0;
+
+ escape.drawable_rect = virtual_screen_rect;
SetRect( &escape.dc_rect, 0, 0, virtual_screen_rect.right -
virtual_screen_rect.left,
virtual_screen_rect.bottom - virtual_screen_rect.top );