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
e88d0330
Commit
e88d0330
authored
Feb 06, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Feb 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Ignore the first named argument when invoking property-put methods
as it is mandatory and doesn't indicate that the arguments will be passed in as named ones.
parent
21140a9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
typelib.c
dlls/oleaut32/typelib.c
+19
-11
No files found.
dlls/oleaut32/typelib.c
View file @
e88d0330
...
...
@@ -5471,8 +5471,24 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
VARIANTARG
**
prgpvarg
=
INVBUF_GET_ARG_PTR_ARRAY
(
buffer
,
func_desc
->
cParams
);
VARIANTARG
*
rgvarg
=
INVBUF_GET_ARG_ARRAY
(
buffer
,
func_desc
->
cParams
);
VARTYPE
*
rgvt
=
INVBUF_GET_ARG_TYPE_ARRAY
(
buffer
,
func_desc
->
cParams
);
UINT
cNamedArgs
=
pDispParams
->
cNamedArgs
;
DISPID
*
rgdispidNamedArgs
=
pDispParams
->
rgdispidNamedArgs
;
hres
=
S_OK
;
if
(
func_desc
->
invkind
&
(
INVOKE_PROPERTYPUT
|
INVOKE_PROPERTYPUTREF
))
{
if
(
!
cNamedArgs
||
(
rgdispidNamedArgs
[
0
]
!=
DISPID_PROPERTYPUT
))
{
ERR
(
"first named arg for property put invocation must be DISPID_PROPERTYPUT
\n
"
);
hres
=
DISP_E_PARAMNOTOPTIONAL
;
goto
func_fail
;
}
/* ignore the DISPID_PROPERTYPUT named argument from now on */
cNamedArgs
--
;
rgdispidNamedArgs
++
;
}
for
(
i
=
0
;
i
<
func_desc
->
cParams
;
i
++
)
{
TYPEDESC
*
tdesc
=
&
func_desc
->
lprgelemdescParam
[
i
].
tdesc
;
...
...
@@ -5487,24 +5503,16 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
USHORT
wParamFlags
=
func_desc
->
lprgelemdescParam
[
i
].
u
.
paramdesc
.
wParamFlags
;
VARIANTARG
*
src_arg
;
if
(
pDispParams
->
cNamedArgs
)
if
(
cNamedArgs
)
{
USHORT
j
;
src_arg
=
NULL
;
for
(
j
=
0
;
j
<
pDispParams
->
cNamedArgs
;
j
++
)
{
if
((
func_desc
->
invkind
&
INVOKE_PROPERTYPUT
)
&&
(
pDispParams
->
rgdispidNamedArgs
[
j
]
==
DISPID_PROPERTYPUT
))
{
src_arg
=
&
pDispParams
->
rgvarg
[
0
];
break
;
}
if
(
pDispParams
->
rgdispidNamedArgs
[
j
]
==
i
)
for
(
j
=
0
;
j
<
cNamedArgs
;
j
++
)
if
(
rgdispidNamedArgs
[
j
]
==
i
)
{
src_arg
=
&
pDispParams
->
rgvarg
[
j
];
break
;
}
}
}
else
src_arg
=
i
<
pDispParams
->
cArgs
?
&
pDispParams
->
rgvarg
[
pDispParams
->
cArgs
-
1
-
i
]
:
NULL
;
...
...
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