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
aacac86a
Commit
aacac86a
authored
Oct 01, 2001
by
Ove Kaaven
Committed by
Alexandre Julliard
Oct 01, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented DispGetParam.
parent
ed2aa7ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
dispatch.c
dlls/oleaut32/dispatch.c
+22
-8
No files found.
dlls/oleaut32/dispatch.c
View file @
aacac86a
...
...
@@ -121,12 +121,26 @@ HRESULT WINAPI DispGetParam(
VARIANT
*
pvarResult
,
/* [out] */
UINT
*
puArgErr
)
/* [out] */
{
HRESULT
hr
=
E_FAIL
;
/**
* TODO : Call VariantChangeTypeEx with LCID 0 (system)
*/
FIXME
(
"Coercion of arguments not implemented
\n
"
);
return
(
hr
);
/* position is counted backwards */
UINT
pos
;
HRESULT
hr
;
TRACE
(
"position=%d, cArgs=%d, cNamedArgs=%d
\n
"
,
position
,
pdispparams
->
cArgs
,
pdispparams
->
cNamedArgs
);
if
(
position
<
pdispparams
->
cArgs
)
{
/* positional arg? */
pos
=
pdispparams
->
cArgs
-
position
-
1
;
}
else
{
/* FIXME: is this how to handle named args? */
for
(
pos
=
0
;
pos
<
pdispparams
->
cNamedArgs
;
pos
++
)
if
(
pdispparams
->
rgdispidNamedArgs
[
pos
]
==
position
)
break
;
if
(
pos
==
pdispparams
->
cNamedArgs
)
return
DISP_E_PARAMNOTFOUND
;
}
hr
=
VariantChangeType
(
pvarResult
,
&
pdispparams
->
rgvarg
[
pos
],
0
,
vtTarg
);
if
(
hr
==
DISP_E_TYPEMISMATCH
)
*
puArgErr
=
pos
;
return
hr
;
}
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