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
6bef4da5
Commit
6bef4da5
authored
Jul 18, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Use current locale in to_string.
parent
2be12eac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
18 deletions
+8
-18
global.c
dlls/vbscript/global.c
+8
-18
No files found.
dlls/vbscript/global.c
View file @
6bef4da5
...
...
@@ -124,26 +124,16 @@ static HRESULT to_int(VARIANT *v, int *ret)
static
HRESULT
to_string
(
VARIANT
*
v
,
BSTR
*
ret
)
{
static
const
WCHAR
trueW
[]
=
{
'T'
,
'r'
,
'u'
,
'e'
,
0
}
;
static
const
WCHAR
falseW
[]
=
{
'F'
,
'a'
,
'l'
,
's'
,
'e'
,
0
}
;
VARIANT
dst
;
HRESULT
hres
;
switch
(
V_VT
(
v
))
{
case
VT_BOOL
:
*
ret
=
SysAllocString
(
V_BOOL
(
v
)
?
trueW
:
falseW
);
return
*
ret
?
S_OK
:
E_OUTOFMEMORY
;
default:
{
VARIANT
dst
;
HRESULT
hres
;
V_VT
(
&
dst
)
=
VT_EMPTY
;
hres
=
VariantChangeTypeEx
(
&
dst
,
v
,
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
),
0
,
VT_BSTR
);
if
(
FAILED
(
hres
))
return
hres
;
V_VT
(
&
dst
)
=
VT_EMPTY
;
hres
=
VariantChangeType
(
&
dst
,
v
,
VARIANT_LOCALBOOL
,
VT_BSTR
);
if
(
FAILED
(
hres
))
return
hres
;
*
ret
=
V_BSTR
(
&
dst
);
return
S_OK
;
}
}
*
ret
=
V_BSTR
(
&
dst
);
return
S_OK
;
}
static
IUnknown
*
create_object
(
script_ctx_t
*
ctx
,
const
WCHAR
*
progid
)
...
...
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