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
59b647a3
Commit
59b647a3
authored
Aug 28, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Support boolean qualifier values.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
08d92817
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
builtin.c
dlls/wbemprox/builtin.c
+11
-7
qualifier.c
dlls/wbemprox/qualifier.c
+4
-0
No files found.
dlls/wbemprox/builtin.c
View file @
59b647a3
...
...
@@ -137,6 +137,8 @@ static const WCHAR prop_availabilityW[] =
{
'A'
,
'v'
,
'a'
,
'i'
,
'l'
,
'a'
,
'b'
,
'i'
,
'l'
,
'i'
,
't'
,
'y'
,
0
};
static
const
WCHAR
prop_binaryrepresentationW
[]
=
{
'B'
,
'i'
,
'n'
,
'a'
,
'r'
,
'y'
,
'R'
,
'e'
,
'p'
,
'r'
,
'e'
,
's'
,
'e'
,
'n'
,
't'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
prop_boolvalueW
[]
=
{
'B'
,
'o'
,
'o'
,
'l'
,
'V'
,
'a'
,
'l'
,
'u'
,
'e'
,
0
};
static
const
WCHAR
prop_bootableW
[]
=
{
'B'
,
'o'
,
'o'
,
't'
,
'a'
,
'b'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
prop_bootpartitionW
[]
=
...
...
@@ -667,13 +669,14 @@ static const struct column col_processor[] =
};
static
const
struct
column
col_qualifier
[]
=
{
{
prop_classW
,
CIM_STRING
},
{
prop_memberW
,
CIM_STRING
},
{
prop_typeW
,
CIM_UINT32
},
{
prop_flavorW
,
CIM_SINT32
},
{
prop_nameW
,
CIM_STRING
},
{
prop_intvalueW
,
CIM_SINT32
},
{
prop_strvalueW
,
CIM_STRING
}
{
prop_classW
,
CIM_STRING
},
{
prop_memberW
,
CIM_STRING
},
{
prop_typeW
,
CIM_UINT32
},
{
prop_flavorW
,
CIM_SINT32
},
{
prop_nameW
,
CIM_STRING
},
{
prop_intvalueW
,
CIM_SINT32
},
{
prop_strvalueW
,
CIM_STRING
},
{
prop_boolvalueW
,
CIM_BOOLEAN
}
};
static
const
struct
column
col_service
[]
=
{
...
...
@@ -1101,6 +1104,7 @@ struct record_qualifier
const
WCHAR
*
name
;
INT32
intvalue
;
const
WCHAR
*
strvalue
;
int
boolvalue
;
};
struct
record_service
{
...
...
dlls/wbemprox/qualifier.c
View file @
59b647a3
...
...
@@ -126,6 +126,7 @@ static HRESULT get_qualifier_value( const WCHAR *class, const WCHAR *member, con
static
const
WCHAR
qualifiersW
[]
=
{
'_'
,
'_'
,
'Q'
,
'U'
,
'A'
,
'L'
,
'I'
,
'F'
,
'I'
,
'E'
,
'R'
,
'S'
,
0
};
static
const
WCHAR
intvalueW
[]
=
{
'I'
,
'n'
,
't'
,
'e'
,
'g'
,
'e'
,
'r'
,
'V'
,
'a'
,
'l'
,
'u'
,
'e'
,
0
};
static
const
WCHAR
strvalueW
[]
=
{
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
'V'
,
'a'
,
'l'
,
'u'
,
'e'
,
0
};
static
const
WCHAR
boolvalueW
[]
=
{
'B'
,
'o'
,
'o'
,
'l'
,
'V'
,
'a'
,
'l'
,
'u'
,
'e'
,
0
};
static
const
WCHAR
flavorW
[]
=
{
'F'
,
'l'
,
'a'
,
'v'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
typeW
[]
=
{
'T'
,
'y'
,
'p'
,
'e'
,
0
};
IEnumWbemClassObject
*
iter
;
...
...
@@ -156,6 +157,9 @@ static HRESULT get_qualifier_value( const WCHAR *class, const WCHAR *member, con
case
CIM_SINT32
:
hr
=
IWbemClassObject_Get
(
obj
,
intvalueW
,
0
,
val
,
NULL
,
NULL
);
break
;
case
CIM_BOOLEAN
:
hr
=
IWbemClassObject_Get
(
obj
,
boolvalueW
,
0
,
val
,
NULL
,
NULL
);
break
;
default:
ERR
(
"unhandled type %u
\n
"
,
V_UI4
(
&
var
));
break
;
...
...
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