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
45306f86
Commit
45306f86
authored
Mar 17, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Improve ITypeInfo2 GetTypeAttr implementation.
parent
7c930589
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
typelib.c
dlls/oleaut32/tests/typelib.c
+1
-1
typelib2.c
dlls/oleaut32/typelib2.c
+2
-0
No files found.
dlls/oleaut32/tests/typelib.c
View file @
45306f86
...
...
@@ -1386,7 +1386,7 @@ static void test_CreateTypeLib(void) {
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
ok
(
typeattr
->
cbSizeInstance
==
4
,
"cbSizeInstance = %d
\n
"
,
typeattr
->
cbSizeInstance
);
ok
(
typeattr
->
typekind
==
4
,
"typekind = %d
\n
"
,
typeattr
->
typekind
);
todo_wine
ok
(
typeattr
->
cFuncs
==
8
,
"cFuncs = %d
\n
"
,
typeattr
->
cFuncs
);
ok
(
typeattr
->
cFuncs
==
8
,
"cFuncs = %d
\n
"
,
typeattr
->
cFuncs
);
ok
(
typeattr
->
cVars
==
0
,
"cVars = %d
\n
"
,
typeattr
->
cVars
);
ok
(
typeattr
->
cImplTypes
==
1
,
"cImplTypes = %d
\n
"
,
typeattr
->
cImplTypes
);
ok
(
typeattr
->
cbSizeVft
==
28
,
"cbSizeVft = %d
\n
"
,
typeattr
->
cbSizeVft
);
...
...
dlls/oleaut32/typelib2.c
View file @
45306f86
...
...
@@ -2919,6 +2919,8 @@ static HRESULT WINAPI ITypeInfo2_fnGetTypeAttr(
(
*
ppTypeAttr
)
->
cbSizeInstance
=
This
->
typeinfo
->
size
;
(
*
ppTypeAttr
)
->
typekind
=
This
->
typekind
;
(
*
ppTypeAttr
)
->
cFuncs
=
This
->
typeinfo
->
cElement
&
0xffff
;
if
(
This
->
typeinfo
->
flags
&
TYPEFLAG_FDUAL
&&
This
->
typekind
==
TKIND_DISPATCH
)
(
*
ppTypeAttr
)
->
cFuncs
+=
7
;
(
*
ppTypeAttr
)
->
cVars
=
This
->
typeinfo
->
cElement
>>
16
;
(
*
ppTypeAttr
)
->
cImplTypes
=
This
->
typeinfo
->
cImplTypes
;
(
*
ppTypeAttr
)
->
cbSizeVft
=
This
->
typekind
==
TKIND_DISPATCH
?
28
:
This
->
typeinfo
->
cbSizeVft
;
...
...
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