Michael Stefaniuc : atl: Simplify RECT assignments.

Alexandre Julliard julliard at winehq.org
Tue Jun 21 11:13:49 CDT 2016


Module: wine
Branch: master
Commit: e3bd659be9b2868b121857fb2643d775bbf0d8c7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e3bd659be9b2868b121857fb2643d775bbf0d8c7

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Jun 21 14:15:44 2016 +0200

atl: Simplify RECT assignments.

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/atl/atl_ax.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/atl/atl_ax.c b/dlls/atl/atl_ax.c
index 083dbe0..aeda139 100644
--- a/dlls/atl/atl_ax.c
+++ b/dlls/atl/atl_ax.c
@@ -827,7 +827,7 @@ static void IOCS_OnSize( IOCS* This, LPCRECT rect )
 {
     SIZEL inPix, inHi;
 
-    This->size.left = rect->left; This->size.right = rect->right; This->size.top = rect->top; This->size.bottom = rect->bottom;
+    This->size = *rect;
 
     if ( !This->control )
         return;
@@ -890,9 +890,7 @@ static LRESULT IOCS_OnWndProc( IOCS *This, HWND hWnd, UINT uMsg, WPARAM wParam,
         case WM_SIZE:
             {
                 RECT r;
-                r.left = r.top = 0;
-                r.right = LOWORD( lParam );
-                r.bottom = HIWORD( lParam );
+                SetRect(&r, 0, 0, LOWORD(lParam), HIWORD(lParam));
                 IOCS_OnSize( This, &r );
             }
             break;




More information about the wine-cvs mailing list