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
38079e07
Commit
38079e07
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 VarRound.
parent
7f84b91b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
variant.c
dlls/oleaut32/variant.c
+13
-1
No files found.
dlls/oleaut32/variant.c
View file @
38079e07
...
@@ -5045,9 +5045,20 @@ HRESULT WINAPI VarRound(LPVARIANT pVarIn, int deci, LPVARIANT pVarOut)
...
@@ -5045,9 +5045,20 @@ HRESULT WINAPI VarRound(LPVARIANT pVarIn, int deci, LPVARIANT pVarOut)
VARIANT
varIn
;
VARIANT
varIn
;
HRESULT
hRet
=
S_OK
;
HRESULT
hRet
=
S_OK
;
float
factor
;
float
factor
;
VARIANT
temp
;
VariantInit
(
&
temp
);
TRACE
(
"(%p->(%s%s),%d)
\n
"
,
pVarIn
,
debugstr_VT
(
pVarIn
),
debugstr_VF
(
pVarIn
),
deci
);
TRACE
(
"(%p->(%s%s),%d)
\n
"
,
pVarIn
,
debugstr_VT
(
pVarIn
),
debugstr_VF
(
pVarIn
),
deci
);
/* 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
VarRound_Exit
;
pVarIn
=
&
temp
;
}
switch
(
V_VT
(
pVarIn
))
switch
(
V_VT
(
pVarIn
))
{
{
/* cases that fail on windows */
/* cases that fail on windows */
...
@@ -5138,9 +5149,10 @@ HRESULT WINAPI VarRound(LPVARIANT pVarIn, int deci, LPVARIANT pVarOut)
...
@@ -5138,9 +5149,10 @@ HRESULT WINAPI VarRound(LPVARIANT pVarIn, int deci, LPVARIANT pVarOut)
V_VT
(
pVarIn
)
&
VT_TYPEMASK
,
deci
);
V_VT
(
pVarIn
)
&
VT_TYPEMASK
,
deci
);
hRet
=
DISP_E_BADVARTYPE
;
hRet
=
DISP_E_BADVARTYPE
;
}
}
VarRound_Exit:
if
(
FAILED
(
hRet
))
if
(
FAILED
(
hRet
))
V_VT
(
pVarOut
)
=
VT_EMPTY
;
V_VT
(
pVarOut
)
=
VT_EMPTY
;
VariantClear
(
&
temp
);
TRACE
(
"returning 0x%08x (%s%s),%f
\n
"
,
hRet
,
debugstr_VT
(
pVarOut
),
TRACE
(
"returning 0x%08x (%s%s),%f
\n
"
,
hRet
,
debugstr_VT
(
pVarOut
),
debugstr_VF
(
pVarOut
),
(
V_VT
(
pVarOut
)
==
VT_R4
)
?
V_R4
(
pVarOut
)
:
debugstr_VF
(
pVarOut
),
(
V_VT
(
pVarOut
)
==
VT_R4
)
?
V_R4
(
pVarOut
)
:
...
...
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