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
756f7817
Commit
756f7817
authored
Dec 08, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fix check for DECIMAL variant in VarNumFromParseNum.
Reported by Gerald Pfeifer. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b67dc2f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
variant.c
dlls/oleaut32/variant.c
+3
-3
No files found.
dlls/oleaut32/variant.c
View file @
756f7817
...
...
@@ -2161,7 +2161,7 @@ HRESULT WINAPI VarNumFromParseNum(NUMPARSE *pNumprs, BYTE *rgbDig,
multiplier10
,
divisor10
);
if
(
dwVtBits
&
(
INTEGER_VTBITS
|
VTBIT_DECIMAL
)
&&
(
!
fractionalDigits
||
!
(
dwVtBits
&
(
REAL_VTBITS
|
VTBIT_
CY
|
VTBIT_
DECIMAL
))))
(
!
fractionalDigits
||
!
(
dwVtBits
&
(
REAL_VTBITS
|
VTBIT_DECIMAL
))))
{
/* We have one or more integer output choices, and either:
* 1) An integer input value, or
...
...
@@ -2275,7 +2275,7 @@ HRESULT WINAPI VarNumFromParseNum(NUMPARSE *pNumprs, BYTE *rgbDig,
V_I8
(
pVarDst
)
=
-
ul64
;
return
S_OK
;
}
else
if
((
dwVtBits
&
REAL_VTBITS
)
==
VTBIT_DECIMAL
)
else
if
((
dwVtBits
&
(
REAL_VTBITS
|
VTBIT_DECIMAL
)
)
==
VTBIT_DECIMAL
)
{
/* Decimal is only output choice left - fast path */
V_VT
(
pVarDst
)
=
VT_DECIMAL
;
...
...
@@ -2337,7 +2337,7 @@ HRESULT WINAPI VarNumFromParseNum(NUMPARSE *pNumprs, BYTE *rgbDig,
V_UI8
(
pVarDst
)
=
ul64
;
return
S_OK
;
}
else
if
((
dwVtBits
&
REAL_VTBITS
)
==
VTBIT_DECIMAL
)
else
if
((
dwVtBits
&
(
REAL_VTBITS
|
VTBIT_DECIMAL
)
)
==
VTBIT_DECIMAL
)
{
/* Decimal is only output choice left - fast path */
V_VT
(
pVarDst
)
=
VT_DECIMAL
;
...
...
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