From 15c55ff7bde8c3343eccf70da7f99328f8e7d754 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sat, 9 Jul 2016 13:56:47 +0200 Subject: [PATCH] explorerframe: Use the proper RECT APIs. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- 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 87a72005f4f..95b0a9935c3 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,