explorerframe: Use the proper RECT APIs.

Michael Stefaniuc mstefani at redhat.de
Sat Jul 9 06:56:47 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 dlls/explorerframe/nstc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/explorerframe/nstc.c b/dlls/explorerframe/nstc.c
index 87a7200..95b0a99 100644
--- a/dlls/explorerframe/nstc.c
+++ b/dlls/explorerframe/nstc.c
@@ -910,9 +910,9 @@ static HRESULT WINAPI NSTC2_fnInitialize(INameSpaceTreeControl2* iface,
     window_ex_style = nstcsFlags & NSTCS_TABSTOP ? WS_EX_CONTROLPARENT : 0;
 
     if(prc)
-        CopyRect(&rc, prc);
+        rc = *prc;
     else
-        rc.left = rc.right = rc.top = rc.bottom = 0;
+        SetRectEmpty(&rc);
 
     This->hwnd_main = CreateWindowExW(window_ex_style, NSTC2_CLASS_NAME, NULL, window_style,
                                       rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
-- 
2.4.11



More information about the wine-patches mailing list