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
ca2e0c5e
Commit
ca2e0c5e
authored
Sep 14, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use IUnknownVtbl in wrapper_vtbl.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
80a222a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
ifacewrap.c
dlls/mshtml/ifacewrap.c
+9
-3
No files found.
dlls/mshtml/ifacewrap.c
View file @
ca2e0c5e
...
...
@@ -215,10 +215,15 @@ DEFINE_WRAPPER_FUNC(98, 392, 784)
DEFINE_WRAPPER_FUNC
(
99
,
396
,
792
)
/* The size was found by testing when calls start crashing. It looks like MS wraps up to 100 functions. */
static
const
void
*
wrapper_vtbl
[]
=
{
static
const
struct
{
IUnknownVtbl
unk_vtbl
;
const
void
*
wrappers
[
97
];
}
wrapper_vtbl
=
{
{
wrapper_QueryInterface
,
wrapper_AddRef
,
wrapper_Release
,
wrapper_Release
},
{
wrapper_func_3
,
wrapper_func_4
,
wrapper_func_5
,
...
...
@@ -316,6 +321,7 @@ static const void *wrapper_vtbl[] = {
wrapper_func_97
,
wrapper_func_98
,
wrapper_func_99
}
};
HRESULT
wrap_iface
(
IUnknown
*
iface
,
IUnknown
*
ref_unk
,
IUnknown
**
ret
)
...
...
@@ -326,7 +332,7 @@ HRESULT wrap_iface(IUnknown *iface, IUnknown *ref_unk, IUnknown **ret)
if
(
!
wrapper
)
return
E_OUTOFMEMORY
;
wrapper
->
IUnknown_iface
.
lpVtbl
=
(
const
IUnknownVtbl
*
)
wrapper
_vtbl
;
wrapper
->
IUnknown_iface
.
lpVtbl
=
&
wrapper_vtbl
.
unk
_vtbl
;
wrapper
->
ref
=
1
;
IUnknown_AddRef
(
iface
);
...
...
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