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
932fcac1
Commit
932fcac1
authored
Jun 04, 2007
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Jun 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Support for VT_DISPATCH in VarAbs.
parent
92ced51b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
variant.c
dlls/oleaut32/variant.c
+17
-2
No files found.
dlls/oleaut32/variant.c
View file @
932fcac1
...
@@ -4273,15 +4273,28 @@ HRESULT WINAPI VarAbs(LPVARIANT pVarIn, LPVARIANT pVarOut)
...
@@ -4273,15 +4273,28 @@ HRESULT WINAPI VarAbs(LPVARIANT pVarIn, LPVARIANT pVarOut)
{
{
VARIANT
varIn
;
VARIANT
varIn
;
HRESULT
hRet
=
S_OK
;
HRESULT
hRet
=
S_OK
;
VARIANT
temp
;
VariantInit
(
&
temp
);
TRACE
(
"(%p->(%s%s),%p)
\n
"
,
pVarIn
,
debugstr_VT
(
pVarIn
),
TRACE
(
"(%p->(%s%s),%p)
\n
"
,
pVarIn
,
debugstr_VT
(
pVarIn
),
debugstr_VF
(
pVarIn
),
pVarOut
);
debugstr_VF
(
pVarIn
),
pVarOut
);
/* Handle VT_DISPATCH by storing and taking address of returned value */
if
((
V_VT
(
pVarIn
)
&
VT_TYPEMASK
)
==
VT_DISPATCH
&&
((
V_VT
(
pVarIn
)
&
~
VT_TYPEMASK
)
==
0
))
{
hRet
=
VARIANT_FetchDispatchValue
(
pVarIn
,
&
temp
);
if
(
FAILED
(
hRet
))
goto
VarAbs_Exit
;
pVarIn
=
&
temp
;
}
if
(
V_ISARRAY
(
pVarIn
)
||
V_VT
(
pVarIn
)
==
VT_UNKNOWN
||
if
(
V_ISARRAY
(
pVarIn
)
||
V_VT
(
pVarIn
)
==
VT_UNKNOWN
||
V_VT
(
pVarIn
)
==
VT_DISPATCH
||
V_VT
(
pVarIn
)
==
VT_RECORD
||
V_VT
(
pVarIn
)
==
VT_DISPATCH
||
V_VT
(
pVarIn
)
==
VT_RECORD
||
V_VT
(
pVarIn
)
==
VT_ERROR
)
V_VT
(
pVarIn
)
==
VT_ERROR
)
return
DISP_E_TYPEMISMATCH
;
{
hRet
=
DISP_E_TYPEMISMATCH
;
goto
VarAbs_Exit
;
}
*
pVarOut
=
*
pVarIn
;
/* Shallow copy the value, and invert it if needed */
*
pVarOut
=
*
pVarIn
;
/* Shallow copy the value, and invert it if needed */
#define ABS_CASE(typ,min) \
#define ABS_CASE(typ,min) \
...
@@ -4331,6 +4344,8 @@ HRESULT WINAPI VarAbs(LPVARIANT pVarIn, LPVARIANT pVarOut)
...
@@ -4331,6 +4344,8 @@ HRESULT WINAPI VarAbs(LPVARIANT pVarIn, LPVARIANT pVarOut)
hRet
=
DISP_E_BADVARTYPE
;
hRet
=
DISP_E_BADVARTYPE
;
}
}
VarAbs_Exit:
VariantClear
(
&
temp
);
return
hRet
;
return
hRet
;
}
}
...
...
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