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
b698b290
Commit
b698b290
authored
May 18, 2007
by
Huw Davies
Committed by
Alexandre Julliard
May 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix CreateDispTypeInfo to store the correct number of functions.
parent
c24a53dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
typelib.c
dlls/oleaut32/tests/typelib.c
+5
-0
typelib.c
dlls/oleaut32/typelib.c
+1
-0
No files found.
dlls/oleaut32/tests/typelib.c
View file @
b698b290
...
...
@@ -350,10 +350,15 @@ static void test_CreateDispTypeInfo(void)
hr
=
ITypeInfo_GetTypeAttr
(
pTI2
,
&
pTypeAttr
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pTypeAttr
->
typekind
==
TKIND_INTERFACE
,
"typekind %0x
\n
"
,
pTypeAttr
->
typekind
);
ok
(
pTypeAttr
->
cFuncs
==
4
,
"cFuncs %d
\n
"
,
pTypeAttr
->
cFuncs
);
ok
(
IsEqualGUID
(
&
pTypeAttr
->
guid
,
&
GUID_NULL
),
"guid {%08x-...}
\n
"
,
pTypeAttr
->
guid
.
Data1
);
ok
(
pTypeAttr
->
wTypeFlags
==
0
,
"typeflags %08x
\n
"
,
pTypeAttr
->
wTypeFlags
);
ITypeInfo_ReleaseTypeAttr
(
pTI2
,
pTypeAttr
);
hr
=
ITypeInfo_GetFuncDesc
(
pTI2
,
0
,
&
pFuncDesc
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pFuncDesc
->
memid
==
0x123
,
"memid %x
\n
"
,
pFuncDesc
->
memid
);
ok
(
pFuncDesc
->
funckind
==
FUNC_VIRTUAL
,
"funckind %d
\n
"
,
pFuncDesc
->
funckind
);
ok
(
pFuncDesc
->
invkind
==
methdata
[
0
].
wFlags
,
"invkind %d
\n
"
,
pFuncDesc
->
invkind
);
ok
(
pFuncDesc
->
callconv
==
methdata
[
0
].
cc
,
"callconv %d
\n
"
,
pFuncDesc
->
callconv
);
...
...
dlls/oleaut32/typelib.c
View file @
b698b290
...
...
@@ -6884,6 +6884,7 @@ HRESULT WINAPI CreateDispTypeInfo(
(
*
ppFuncDesc
)
->
ctCustData
=
0
;
(
*
ppFuncDesc
)
->
pCustData
=
NULL
;
(
*
ppFuncDesc
)
->
next
=
NULL
;
pTIIface
->
TypeAttr
.
cFuncs
++
;
ppFuncDesc
=
&
(
*
ppFuncDesc
)
->
next
;
}
...
...
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