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
cd5cad69
Commit
cd5cad69
authored
Jul 13, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Return a null variant instead of an empty string if the property isn't set.
parent
5acdba54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
query.c
dlls/wbemprox/query.c
+10
-2
No files found.
dlls/wbemprox/query.c
View file @
cd5cad69
...
...
@@ -728,6 +728,9 @@ static void set_variant( VARTYPE vartype, LONGLONG val, BSTR val_bstr, VARIANT *
V_VT
(
ret
)
=
VT_UI4
;
V_UI4
(
ret
)
=
val
;
return
;
case
VT_NULL
:
V_VT
(
ret
)
=
VT_NULL
;
return
;
default:
ERR
(
"unhandled variant type %u
\n
"
,
vartype
);
return
;
...
...
@@ -758,8 +761,13 @@ HRESULT get_propval( const struct view *view, UINT index, const WCHAR *name, VAR
{
case
CIM_STRING
:
case
CIM_DATETIME
:
vartype
=
VT_BSTR
;
val_bstr
=
SysAllocString
(
(
const
WCHAR
*
)(
INT_PTR
)
val
);
if
(
val
)
{
vartype
=
VT_BSTR
;
val_bstr
=
SysAllocString
(
(
const
WCHAR
*
)(
INT_PTR
)
val
);
}
else
vartype
=
VT_NULL
;
break
;
case
CIM_SINT16
:
if
(
!
vartype
)
vartype
=
VT_I2
;
...
...
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