wbemprox: Avoid a crash in to_safearray.
Hans Leidekker
hans at codeweavers.com
Fri May 3 07:45:25 CDT 2013
---
dlls/wbemprox/query.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wbemprox/query.c b/dlls/wbemprox/query.c
index 028b334..1850368 100644
--- a/dlls/wbemprox/query.c
+++ b/dlls/wbemprox/query.c
@@ -580,7 +580,7 @@ SAFEARRAY *to_safearray( const struct array *array, CIMTYPE type )
VARTYPE vartype = to_vartype( type );
LONG i;
- if (!(ret = SafeArrayCreateVector( vartype, 0, array->count ))) return NULL;
+ if (!array || !(ret = SafeArrayCreateVector( vartype, 0, array->count ))) return NULL;
for (i = 0; i < array->count; i++)
{
--
1.7.10.4
More information about the wine-patches
mailing list