Michael Stefaniuc : explorerframe: Use the proper RECT APIs.
Alexandre Julliard
julliard at winehq.org
Sun Jul 10 08:57:09 CDT 2016
Module: wine
Branch: master
Commit: 15c55ff7bde8c3343eccf70da7f99328f8e7d754
URL: http://source.winehq.org/git/wine.git/?a=commit;h=15c55ff7bde8c3343eccf70da7f99328f8e7d754
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Sat Jul 9 13:56:47 2016 +0200
explorerframe: Use the proper RECT APIs.
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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,
More information about the wine-cvs
mailing list