Michael Stefaniuc : mshtml: Use SetRect() instead of open coding it.
Alexandre Julliard
julliard at winehq.org
Thu Jul 14 08:58:06 CDT 2016
Module: wine
Branch: master
Commit: 9cec2e5936598aa9b3d9482d7a9a0e5daa5077a8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9cec2e5936598aa9b3d9482d7a9a0e5daa5077a8
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Tue Jul 12 10:08:52 2016 +0200
mshtml: Use SetRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/pluginhost.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/dlls/mshtml/pluginhost.c b/dlls/mshtml/pluginhost.c
index 7b1133d..712f7e0 100644
--- a/dlls/mshtml/pluginhost.c
+++ b/dlls/mshtml/pluginhost.c
@@ -124,10 +124,7 @@ static void update_readystate(PluginHost *host)
/* FIXME: We shouldn't need this function and we should embed plugin directly in the main document */
static void get_pos_rect(PluginHost *host, RECT *ret)
{
- ret->top = 0;
- ret->left = 0;
- ret->bottom = host->rect.bottom - host->rect.top;
- ret->right = host->rect.right - host->rect.left;
+ SetRect(ret, 0, 0, host->rect.right - host->rect.left, host->rect.bottom - host->rect.top);
}
static void load_prop_bag(PluginHost *host, IPersistPropertyBag *persist_prop_bag)
More information about the wine-cvs
mailing list