Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
31201da6
Commit
31201da6
authored
Aug 16, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved Invoke(DISPID_ENABLED) invocation to separated function.
parent
af318c5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
19 deletions
+24
-19
pluginhost.c
dlls/mshtml/pluginhost.c
+24
-19
No files found.
dlls/mshtml/pluginhost.c
View file @
31201da6
...
...
@@ -329,6 +329,29 @@ void update_plugin_window(PluginHost *host, HWND hwnd, const RECT *rect)
IOleInPlaceObject_SetObjectRects
(
host
->
ip_object
,
&
host
->
rect
,
&
host
->
rect
);
}
static
void
notif_enabled
(
PluginHost
*
plugin_host
)
{
DISPPARAMS
args
=
{
NULL
,
NULL
,
0
,
0
};
IDispatch
*
disp
;
ULONG
err
=
0
;
VARIANT
res
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
plugin_host
->
plugin_unk
,
&
IID_IDispatch
,
(
void
**
)
&
disp
);
if
(
FAILED
(
hres
))
{
FIXME
(
"Could not get IDispatch iface: %08x
\n
"
,
hres
);
return
;
}
V_VT
(
&
res
)
=
VT_EMPTY
;
hres
=
IDispatch_Invoke
(
disp
,
DISPID_ENABLED
,
&
IID_NULL
,
0
/*FIXME*/
,
DISPATCH_PROPERTYGET
,
&
args
,
&
res
,
NULL
,
&
err
);
IDispatch_Release
(
disp
);
if
(
SUCCEEDED
(
hres
))
{
FIXME
(
"Got enabled %s
\n
"
,
debugstr_variant
(
&
res
));
VariantClear
(
&
res
);
}
}
HRESULT
get_plugin_disp
(
HTMLPluginContainer
*
plugin_container
,
IDispatch
**
ret
)
{
PluginHost
*
host
;
...
...
@@ -849,11 +872,6 @@ static HRESULT WINAPI PHInPlaceSite_OnInPlaceActivate(IOleInPlaceSiteEx *iface)
static
HRESULT
WINAPI
PHInPlaceSite_OnUIActivate
(
IOleInPlaceSiteEx
*
iface
)
{
PluginHost
*
This
=
impl_from_IOleInPlaceSiteEx
(
iface
);
DISPPARAMS
args
=
{
NULL
,
NULL
,
0
,
0
};
IDispatch
*
disp
;
ULONG
err
=
0
;
VARIANT
res
;
HRESULT
hres
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -864,20 +882,7 @@ static HRESULT WINAPI PHInPlaceSite_OnUIActivate(IOleInPlaceSiteEx *iface)
This
->
ui_active
=
TRUE
;
hres
=
IUnknown_QueryInterface
(
This
->
plugin_unk
,
&
IID_IDispatch
,
(
void
**
)
&
disp
);
if
(
FAILED
(
hres
))
{
FIXME
(
"Could not get IDispatch iface: %08x
\n
"
,
hres
);
return
hres
;
}
V_VT
(
&
res
)
=
VT_EMPTY
;
hres
=
IDispatch_Invoke
(
disp
,
DISPID_ENABLED
,
&
IID_NULL
,
0
/*FIXME*/
,
DISPATCH_PROPERTYGET
,
&
args
,
&
res
,
NULL
,
&
err
);
IDispatch_Release
(
disp
);
if
(
SUCCEEDED
(
hres
))
{
FIXME
(
"Got enabled %s
\n
"
,
debugstr_variant
(
&
res
));
VariantClear
(
&
res
);
}
notif_enabled
(
This
);
return
S_OK
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment