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
16468517
Commit
16468517
authored
May 17, 2010
by
Andrey Turkin
Committed by
Alexandre Julliard
May 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Set flag for retval params in ICreateTypeInfo::AddFuncDesc.
parent
5e4c16b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
typelib2.c
dlls/oleaut32/typelib2.c
+6
-2
No files found.
dlls/oleaut32/typelib2.c
View file @
16468517
...
...
@@ -1766,7 +1766,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddFuncDesc(
CyclicList
*
iter
,
*
insert
;
int
*
typedata
;
int
i
,
num_defaults
=
0
;
int
i
,
num_defaults
=
0
,
num_retval
=
0
;
int
decoded_size
;
HRESULT
hres
;
...
...
@@ -1806,9 +1806,12 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddFuncDesc(
return
TYPE_E_INCONSISTENTPROPFUNCS
;
/* get number of arguments with default values specified */
for
(
i
=
0
;
i
<
pFuncDesc
->
cParams
;
i
++
)
for
(
i
=
0
;
i
<
pFuncDesc
->
cParams
;
i
++
)
{
if
(
pFuncDesc
->
lprgelemdescParam
[
i
].
u
.
paramdesc
.
wParamFlags
&
PARAMFLAG_FHASDEFAULT
)
num_defaults
++
;
if
(
pFuncDesc
->
lprgelemdescParam
[
i
].
u
.
paramdesc
.
wParamFlags
&
PARAMFLAG_FRETVAL
)
num_retval
++
;
}
if
(
!
This
->
typedata
)
{
This
->
typedata
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
CyclicList
));
...
...
@@ -1840,6 +1843,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddFuncDesc(
typedata
[
3
]
=
((
sizeof
(
FUNCDESC
)
+
decoded_size
)
<<
16
)
|
(
unsigned
short
)(
pFuncDesc
->
oVft
?
pFuncDesc
->
oVft
+
1
:
0
);
typedata
[
4
]
=
(
pFuncDesc
->
callconv
<<
8
)
|
(
pFuncDesc
->
invkind
<<
3
)
|
pFuncDesc
->
funckind
;
if
(
num_defaults
)
typedata
[
4
]
|=
0x1000
;
if
(
num_retval
)
typedata
[
4
]
|=
0x4000
;
typedata
[
5
]
=
pFuncDesc
->
cParams
;
/* NOTE: High word of typedata[3] is total size of FUNCDESC + size of all ELEMDESCs for params + TYPEDESCs for pointer params and return types. */
...
...
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