[PATCH 1/2] wbemprox: Support only getting type in record_get_value

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Wed May 26 00:59:26 CDT 2021


Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 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)
     {
-- 
2.30.2




More information about the wine-devel mailing list