Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ed749f51
Commit
ed749f51
authored
Jan 04, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Use IDispatch vtable size instead of hardcoded value.
parent
b09fd556
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
typelib.c
dlls/oleaut32/typelib.c
+3
-2
typelib2.c
dlls/oleaut32/typelib2.c
+2
-2
No files found.
dlls/oleaut32/typelib.c
View file @
ed749f51
...
...
@@ -1082,7 +1082,7 @@ typedef struct tagTLBVarDesc
VARDESC
vardesc
;
/* lots of info on the variable and its attributes. */
BSTR
Name
;
/* the name of this variable */
int
HelpContext
;
int
HelpStringContext
;
/* FIXME: where? */
int
HelpStringContext
;
BSTR
HelpString
;
int
ctCustData
;
TLBCustData
*
pCustData
;
/* linked list to cust data; */
...
...
@@ -5110,7 +5110,8 @@ static HRESULT WINAPI ITypeInfo_fnGetTypeAttr( ITypeInfo2 *iface,
if
((
*
ppTypeAttr
)
->
typekind
==
TKIND_DISPATCH
)
{
/* This should include all the inherited funcs */
(
*
ppTypeAttr
)
->
cFuncs
=
(
*
ppTypeAttr
)
->
cbSizeVft
/
sizeof
(
void
*
);
(
*
ppTypeAttr
)
->
cbSizeVft
=
7
*
sizeof
(
void
*
);
/* This is always the size of IDispatch's vtbl */
/* This is always the size of IDispatch's vtbl */
(
*
ppTypeAttr
)
->
cbSizeVft
=
sizeof
(
IDispatchVtbl
);
(
*
ppTypeAttr
)
->
wTypeFlags
&=
~
TYPEFLAG_FOLEAUTOMATION
;
}
return
S_OK
;
...
...
dlls/oleaut32/typelib2.c
View file @
ed749f51
...
...
@@ -3207,10 +3207,10 @@ static HRESULT WINAPI ITypeInfo2_fnGetTypeAttr(
(
*
ppTypeAttr
)
->
typekind
=
This
->
typekind
;
(
*
ppTypeAttr
)
->
cFuncs
=
cti2_get_func_count
(
This
->
typeinfo
);
if
(
This
->
typeinfo
->
flags
&
TYPEFLAG_FDUAL
&&
This
->
typekind
==
TKIND_DISPATCH
)
(
*
ppTypeAttr
)
->
cFuncs
+=
7
;
(
*
ppTypeAttr
)
->
cFuncs
+=
sizeof
(
IDispatchVtbl
)
/
sizeof
(
void
*
)
;
(
*
ppTypeAttr
)
->
cVars
=
cti2_get_var_count
(
This
->
typeinfo
);
(
*
ppTypeAttr
)
->
cImplTypes
=
This
->
typeinfo
->
cImplTypes
;
(
*
ppTypeAttr
)
->
cbSizeVft
=
This
->
typekind
==
TKIND_DISPATCH
?
7
*
sizeof
(
void
*
)
:
This
->
typeinfo
->
cbSizeVft
;
(
*
ppTypeAttr
)
->
cbSizeVft
=
This
->
typekind
==
TKIND_DISPATCH
?
sizeof
(
IDispatchVtbl
)
:
This
->
typeinfo
->
cbSizeVft
;
(
*
ppTypeAttr
)
->
cbAlignment
=
(
This
->
typeinfo
->
typekind
>>
11
)
&
0x1f
;
(
*
ppTypeAttr
)
->
wTypeFlags
=
This
->
typeinfo
->
flags
;
(
*
ppTypeAttr
)
->
wMajorVerNum
=
LOWORD
(
This
->
typeinfo
->
version
);
...
...
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