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
873e41ba
Commit
873e41ba
authored
Feb 14, 2023
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Remove overflow check for VT_R4 and VT_R8 in VarAbs.
(cherry picked from commit
23f0df42
)
parent
18448aa2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
vartest.c
dlls/oleaut32/tests/vartest.c
+2
-0
variant.c
dlls/oleaut32/variant.c
+6
-2
No files found.
dlls/oleaut32/tests/vartest.c
View file @
873e41ba
...
...
@@ -3121,6 +3121,8 @@ static void test_VarAbs(void)
VARABS
(
R4
,
-
1
,
R4
,
1
);
VARABS
(
R8
,
1
,
R8
,
1
);
VARABS
(
R8
,
-
1
,
R8
,
1
);
VARABS
(
R4
,
1.40129846432481707e-45
,
R4
,
1.40129846432481707e-45
);
VARABS
(
R8
,
4.94065645841246544e-324
,
R8
,
4.94065645841246544e-324
);
VARABS
(
DATE
,
1
,
DATE
,
1
);
VARABS
(
DATE
,
-
1
,
DATE
,
1
);
V_VT
(
&
v
)
=
VT_CY
;
...
...
dlls/oleaut32/variant.c
View file @
873e41ba
...
...
@@ -4369,7 +4369,9 @@ HRESULT WINAPI VarAbs(LPVARIANT pVarIn, LPVARIANT pVarOut)
case
VT_INT
:
ABS_CASE
(
I4
,
I4_MIN
);
ABS_CASE
(
I8
,
I8_MIN
);
ABS_CASE
(
R4
,
R4_MIN
);
case
VT_R4
:
if
(
V_R4
(
pVarOut
)
<
0
.
0
)
V_R4
(
pVarOut
)
=
-
V_R4
(
pVarOut
);
break
;
case
VT_BSTR
:
hRet
=
VarR8FromStr
(
V_BSTR
(
pVarIn
),
LOCALE_USER_DEFAULT
,
0
,
&
V_R8
(
&
varIn
));
if
(
FAILED
(
hRet
))
...
...
@@ -4378,7 +4380,9 @@ HRESULT WINAPI VarAbs(LPVARIANT pVarIn, LPVARIANT pVarOut)
pVarIn
=
&
varIn
;
/* Fall through ... */
case
VT_DATE
:
ABS_CASE
(
R8
,
R8_MIN
);
case
VT_R8
:
if
(
V_R8
(
pVarOut
)
<
0
.
0
)
V_R8
(
pVarOut
)
=
-
V_R8
(
pVarOut
);
break
;
case
VT_CY
:
hRet
=
VarCyAbs
(
V_CY
(
pVarIn
),
&
V_CY
(
pVarOut
));
break
;
...
...
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