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
1c881e53
Commit
1c881e53
authored
Feb 25, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved call_disp_func to htmlevent.c.
parent
47ebbbd4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
27 deletions
+25
-27
dispex.c
dlls/mshtml/dispex.c
+0
-24
htmlevent.c
dlls/mshtml/htmlevent.c
+24
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-3
No files found.
dlls/mshtml/dispex.c
View file @
1c881e53
...
...
@@ -324,30 +324,6 @@ static dispex_data_t *get_dispex_data(DispatchEx *This)
return
This
->
data
->
data
;
}
HRESULT
call_disp_func
(
IDispatch
*
disp
,
DISPPARAMS
*
dp
)
{
EXCEPINFO
ei
;
IDispatchEx
*
dispex
;
VARIANT
res
;
HRESULT
hres
;
VariantInit
(
&
res
);
memset
(
&
ei
,
0
,
sizeof
(
ei
));
hres
=
IDispatch_QueryInterface
(
disp
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
IDispatchEx_InvokeEx
(
dispex
,
0
,
GetUserDefaultLCID
(),
DISPATCH_METHOD
,
dp
,
&
res
,
&
ei
,
NULL
);
IDispatchEx_Release
(
dispex
);
}
else
{
TRACE
(
"Could not get IDispatchEx interface: %08x
\n
"
,
hres
);
hres
=
IDispatch_Invoke
(
disp
,
0
,
&
IID_NULL
,
GetUserDefaultLCID
(),
DISPATCH_METHOD
,
dp
,
&
res
,
&
ei
,
NULL
);
}
VariantClear
(
&
res
);
return
hres
;
}
static
inline
BOOL
is_custom_dispid
(
DISPID
id
)
{
return
MSHTML_DISPID_CUSTOM_MIN
<=
id
&&
id
<=
MSHTML_DISPID_CUSTOM_MAX
;
...
...
dlls/mshtml/htmlevent.c
View file @
1c881e53
...
...
@@ -786,6 +786,30 @@ static IHTMLEventObj *create_event(HTMLDOMNode *target, eventid_t eid, nsIDOMEve
return
&
ret
->
IHTMLEventObj_iface
;
}
static
HRESULT
call_disp_func
(
IDispatch
*
disp
,
DISPPARAMS
*
dp
)
{
EXCEPINFO
ei
;
IDispatchEx
*
dispex
;
VARIANT
res
;
HRESULT
hres
;
VariantInit
(
&
res
);
memset
(
&
ei
,
0
,
sizeof
(
ei
));
hres
=
IDispatch_QueryInterface
(
disp
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
IDispatchEx_InvokeEx
(
dispex
,
0
,
GetUserDefaultLCID
(),
DISPATCH_METHOD
,
dp
,
&
res
,
&
ei
,
NULL
);
IDispatchEx_Release
(
dispex
);
}
else
{
TRACE
(
"Could not get IDispatchEx interface: %08x
\n
"
,
hres
);
hres
=
IDispatch_Invoke
(
disp
,
0
,
&
IID_NULL
,
GetUserDefaultLCID
(),
DISPATCH_METHOD
,
dp
,
&
res
,
&
ei
,
NULL
);
}
VariantClear
(
&
res
);
return
hres
;
}
static
HRESULT
call_cp_func
(
IDispatch
*
disp
,
DISPID
dispid
)
{
DISPPARAMS
dp
=
{
NULL
,
NULL
,
0
,
0
};
...
...
dlls/mshtml/mshtml_private.h
View file @
1c881e53
...
...
@@ -204,6 +204,7 @@ BOOL dispex_query_interface(DispatchEx*,REFIID,void**);
HRESULT
dispex_get_dprop_ref
(
DispatchEx
*
,
const
WCHAR
*
,
BOOL
,
VARIANT
**
);
HRESULT
get_dispids
(
tid_t
,
DWORD
*
,
DISPID
**
);
HRESULT
remove_prop
(
DispatchEx
*
,
BSTR
,
VARIANT_BOOL
*
);
void
release_typelib
(
void
);
typedef
struct
HTMLWindow
HTMLWindow
;
typedef
struct
HTMLDocumentNode
HTMLDocumentNode
;
...
...
@@ -866,9 +867,6 @@ void remove_target_tasks(LONG);
DWORD
set_task_timer
(
HTMLDocument
*
,
DWORD
,
BOOL
,
IDispatch
*
);
HRESULT
clear_task_timer
(
HTMLDocument
*
,
BOOL
,
DWORD
);
void
release_typelib
(
void
);
HRESULT
call_disp_func
(
IDispatch
*
,
DISPPARAMS
*
);
const
char
*
debugstr_variant
(
const
VARIANT
*
);
DEFINE_GUID
(
CLSID_AboutProtocol
,
0x3050F406
,
0x98B5
,
0x11CF
,
0xBB
,
0x82
,
0x00
,
0xAA
,
0x00
,
0xBD
,
0xCE
,
0x0B
);
...
...
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