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
478ac372
Commit
478ac372
authored
Dec 07, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Use LOCALE_NOUSEROVERRIDE where necessary in variant conversions.
parent
9967d821
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vartype.c
dlls/oleaut32/vartype.c
+5
-5
No files found.
dlls/oleaut32/vartype.c
View file @
478ac372
...
...
@@ -4160,7 +4160,7 @@ HRESULT WINAPI VarDecFromR4(FLOAT fltIn, DECIMAL* pDecOut)
WCHAR
buff
[
256
];
sprintfW
(
buff
,
szFloatFormatW
,
fltIn
);
return
VarDecFromStr
(
buff
,
LOCALE_EN_US
,
0
,
pDecOut
);
return
VarDecFromStr
(
buff
,
LOCALE_EN_US
,
LOCALE_NOUSEROVERRIDE
,
pDecOut
);
}
/************************************************************************
...
...
@@ -4180,7 +4180,7 @@ HRESULT WINAPI VarDecFromR8(double dblIn, DECIMAL* pDecOut)
WCHAR
buff
[
256
];
sprintfW
(
buff
,
szDoubleFormatW
,
dblIn
);
return
VarDecFromStr
(
buff
,
LOCALE_EN_US
,
0
,
pDecOut
);
return
VarDecFromStr
(
buff
,
LOCALE_EN_US
,
LOCALE_NOUSEROVERRIDE
,
pDecOut
);
}
/************************************************************************
...
...
@@ -6070,7 +6070,8 @@ static BSTR VARIANT_BstrReplaceDecimal(WCHAR * buff, LCID lcid, ULONG dwFlags)
the need to replace the decimal separator, and if so, will prepare an
appropriate NUMBERFMTW structure to do the job via GetNumberFormatW().
*/
GetLocaleInfoW
(
lcid
,
LOCALE_SDECIMAL
,
lpDecimalSep
,
sizeof
(
lpDecimalSep
)
/
sizeof
(
WCHAR
));
GetLocaleInfoW
(
lcid
,
LOCALE_SDECIMAL
|
(
dwFlags
&
LOCALE_NOUSEROVERRIDE
),
lpDecimalSep
,
sizeof
(
lpDecimalSep
)
/
sizeof
(
WCHAR
));
if
(
lpDecimalSep
[
0
]
==
'.'
&&
lpDecimalSep
[
1
]
==
'\0'
)
{
/* locale is compatible with English - return original string */
...
...
@@ -6095,8 +6096,7 @@ static BSTR VARIANT_BstrReplaceDecimal(WCHAR * buff, LCID lcid, ULONG dwFlags)
if
(
p
)
minFormat
.
NumDigits
=
strlenW
(
p
+
1
);
numbuff
[
0
]
=
'\0'
;
if
(
!
GetNumberFormatW
(
lcid
,
dwFlags
&
LOCALE_NOUSEROVERRIDE
,
buff
,
&
minFormat
,
numbuff
,
sizeof
(
numbuff
)
/
sizeof
(
WCHAR
)))
if
(
!
GetNumberFormatW
(
lcid
,
0
,
buff
,
&
minFormat
,
numbuff
,
sizeof
(
numbuff
)
/
sizeof
(
WCHAR
)))
{
WARN
(
"GetNumberFormatW() failed, returning raw number string instead
\n
"
);
bstrOut
=
SysAllocString
(
buff
);
...
...
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