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
560e76ee
Commit
560e76ee
authored
May 12, 2009
by
Damjan Jovanovic
Committed by
Alexandre Julliard
May 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: fix a rounding bug in VarFormat.
parent
52722e66
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
varformat.c
dlls/oleaut32/tests/varformat.c
+1
-0
varformat.c
dlls/oleaut32/varformat.c
+3
-0
No files found.
dlls/oleaut32/tests/varformat.c
View file @
560e76ee
...
@@ -379,6 +379,7 @@ static void test_VarFormat(void)
...
@@ -379,6 +379,7 @@ static void test_VarFormat(void)
VARFMT
(
VT_R8
,
V_R8
,
-
1
.
57
,
"0.00"
,
S_OK
,
"-1.57"
);
VARFMT
(
VT_R8
,
V_R8
,
-
1
.
57
,
"0.00"
,
S_OK
,
"-1.57"
);
VARFMT
(
VT_R8
,
V_R8
,
-
1
.
57
,
"#.##"
,
S_OK
,
"-1.57"
);
VARFMT
(
VT_R8
,
V_R8
,
-
1
.
57
,
"#.##"
,
S_OK
,
"-1.57"
);
VARFMT
(
VT_R8
,
V_R8
,
-
0
.
1
,
".#"
,
S_OK
,
"-.1"
);
VARFMT
(
VT_R8
,
V_R8
,
-
0
.
1
,
".#"
,
S_OK
,
"-.1"
);
VARFMT
(
VT_R8
,
V_R8
,
0
.
099
,
"#.#"
,
S_OK
,
".1"
);
/* 'out' is not cleared */
/* 'out' is not cleared */
...
...
dlls/oleaut32/varformat.c
View file @
560e76ee
...
@@ -1305,6 +1305,9 @@ static HRESULT VARIANT_FormatNumber(LPVARIANT pVarIn, LPOLESTR lpszFormat,
...
@@ -1305,6 +1305,9 @@ static HRESULT VARIANT_FormatNumber(LPVARIANT pVarIn, LPOLESTR lpszFormat,
else
else
{
{
rgbDig
[
have_int
+
need_frac
]
=
0
;
rgbDig
[
have_int
+
need_frac
]
=
0
;
if
(
exponent
<
0
)
exponent
++
;
else
have_int
++
;
have_int
++
;
}
}
}
}
...
...
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