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
2dd3288c
Commit
2dd3288c
authored
Mar 24, 2005
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Mar 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After Float->string conversion via sprintfW(), VarDecFromR[4|8] is
forced to use US locale for string->Decimal conversion, to agree with sprintfW().
parent
6be7d751
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
vartype.c
dlls/oleaut32/vartype.c
+4
-2
No files found.
dlls/oleaut32/vartype.c
View file @
2dd3288c
...
...
@@ -3990,6 +3990,8 @@ HRESULT WINAPI VarDecFromI4(LONG lIn, DECIMAL* pDecOut)
return
S_OK
;
}
#define LOCALE_EN_US (MAKELCID(MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US),SORT_DEFAULT))
/************************************************************************
* VarDecFromR4 (OLEAUT32.193)
*
...
...
@@ -4007,7 +4009,7 @@ HRESULT WINAPI VarDecFromR4(FLOAT fltIn, DECIMAL* pDecOut)
WCHAR
buff
[
256
];
sprintfW
(
buff
,
szFloatFormatW
,
fltIn
);
return
_VarDecFromStr
(
buff
,
LOCALE_
SYSTEM_DEFAULT
,
0
,
pDecOut
);
return
_VarDecFromStr
(
buff
,
LOCALE_
EN_US
,
0
,
pDecOut
);
}
/************************************************************************
...
...
@@ -4027,7 +4029,7 @@ HRESULT WINAPI VarDecFromR8(double dblIn, DECIMAL* pDecOut)
WCHAR
buff
[
256
];
sprintfW
(
buff
,
szDoubleFormatW
,
dblIn
);
return
_VarDecFromStr
(
buff
,
LOCALE_
USER_DEFAULT
,
0
,
pDecOut
);
return
_VarDecFromStr
(
buff
,
LOCALE_
EN_US
,
0
,
pDecOut
);
}
/************************************************************************
...
...
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