[ros-diffs] [fireball] 50388: - Don't use an unitialized rect offset.

fireball at svn.reactos.org fireball at svn.reactos.org
Sat Jan 15 12:10:52 UTC 2011


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/winent.drv/window.c?rev=50388&r1=50387&r2=50388&view=diff
==============================================================================
--- 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 );




More information about the Ros-diffs mailing list