Hans Leidekker : wbemprox: Avoid a crash when a class is not implemented.

Alexandre Julliard julliard at winehq.org
Thu Sep 19 16:35:18 CDT 2019


Module: wine
Branch: master
Commit: 58572fc916ecbd6ae77f2b181f51daf4169dcef1
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=58572fc916ecbd6ae77f2b181f51daf4169dcef1

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Sep 19 19:33:28 2019 +0200

wbemprox: Avoid a crash when a class is not implemented.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wbemprox/query.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/wbemprox/query.c b/dlls/wbemprox/query.c
index b311fdaf2d..b60ad956b3 100644
--- a/dlls/wbemprox/query.c
+++ b/dlls/wbemprox/query.c
@@ -1123,6 +1123,8 @@ void set_variant( VARTYPE type, LONGLONG val, void *val_ptr, VARIANT *ret )
 
 static HRESULT map_view_index( const struct view *view, UINT index, UINT *table_index, UINT *result_index )
 {
+    if (!view->table) return WBEM_E_NOT_FOUND;
+
     switch (view->type)
     {
     case VIEW_TYPE_SELECT:




More information about the wine-cvs mailing list