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
4e2c2e5a
Commit
4e2c2e5a
authored
Sep 04, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Add support for boolean values in get_value_bstr.
parent
bbb823f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
table.c
dlls/wbemprox/table.c
+6
-0
No files found.
dlls/wbemprox/table.c
View file @
4e2c2e5a
...
...
@@ -144,6 +144,8 @@ BSTR get_value_bstr( const struct table *table, UINT row, UINT column )
static
const
WCHAR
fmt_signed64W
[]
=
{
'%'
,
'I'
,
'6'
,
'4'
,
'd'
,
0
};
static
const
WCHAR
fmt_unsigned64W
[]
=
{
'%'
,
'I'
,
'6'
,
'4'
,
'u'
,
0
};
static
const
WCHAR
fmt_strW
[]
=
{
'\"'
,
'%'
,
's'
,
'\"'
,
0
};
static
const
WCHAR
trueW
[]
=
{
'T'
,
'R'
,
'U'
,
'E'
,
0
};
static
const
WCHAR
falseW
[]
=
{
'F'
,
'A'
,
'L'
,
'S'
,
'E'
,
0
};
LONGLONG
val
;
BSTR
ret
;
WCHAR
number
[
22
];
...
...
@@ -158,6 +160,10 @@ BSTR get_value_bstr( const struct table *table, UINT row, UINT column )
switch
(
table
->
columns
[
column
].
type
&
COL_TYPE_MASK
)
{
case
CIM_BOOLEAN
:
if
(
val
)
return
SysAllocString
(
trueW
);
else
return
SysAllocString
(
falseW
);
case
CIM_DATETIME
:
case
CIM_STRING
:
len
=
strlenW
(
(
const
WCHAR
*
)(
INT_PTR
)
val
)
+
2
;
...
...
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