mshtml: Use SetRect() instead of open coding it.
Michael Stefaniuc
mstefani at redhat.de
Tue Jul 12 03:08:52 CDT 2016
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
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)
--
2.4.11
More information about the wine-patches
mailing list