Alistair Leslie-Hughes : wbemprox: Support only getting type in record_get_value.
Alexandre Julliard
julliard at winehq.org
Wed May 26 15:46:26 CDT 2021
Module: wine
Branch: master
Commit: 6daec612cf7effccb3d89bbad3d1ac1ea279bd68
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6daec612cf7effccb3d89bbad3d1ac1ea279bd68
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Wed May 26 15:59:26 2021 +1000
wbemprox: Support only getting type in record_get_value.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wbemprox/class.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/wbemprox/class.c b/dlls/wbemprox/class.c
index 2f2d3ef2bfb..2f7752e8671 100644
--- a/dlls/wbemprox/class.c
+++ b/dlls/wbemprox/class.c
@@ -354,6 +354,7 @@ static HRESULT record_get_value( const struct record *record, UINT index, VARIAN
VARTYPE vartype = to_vartype( record->fields[index].type & CIM_TYPE_MASK );
if (type) *type = record->fields[index].type;
+ if (!var) return S_OK;
if (record->fields[index].type & CIM_FLAG_ARRAY)
{
More information about the wine-cvs
mailing list