Hans Leidekker : wbemprox: Avoid a crash in to_safearray.
Alexandre Julliard
julliard at winehq.org
Fri May 3 15:24:51 CDT 2013
Module: wine
Branch: master
Commit: 7f81a2c6b1716feb0bffe08d998ad7e8220ddae0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7f81a2c6b1716feb0bffe08d998ad7e8220ddae0
Author: Hans Leidekker <hans at codeweavers.com>
Date: Fri May 3 14:45:25 2013 +0200
wbemprox: Avoid a crash in to_safearray.
---
dlls/wbemprox/query.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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++)
{
More information about the wine-cvs
mailing list