Hans Leidekker : wbemprox: Handle NULL operands in eval_strcmp.
Module: wine Branch: master Commit: 68f0e174d6de3b313a7cf4f22e72a40a40ec05fb URL: http://source.winehq.org/git/wine.git/?a=commit;h=68f0e174d6de3b313a7cf4f22e... Author: Hans Leidekker <hans(a)codeweavers.com> Date: Wed Oct 10 12:00:58 2012 +0200 wbemprox: Handle NULL operands in eval_strcmp. --- dlls/wbemprox/query.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/dlls/wbemprox/query.c b/dlls/wbemprox/query.c index 3525be9..223a373 100644 --- a/dlls/wbemprox/query.c +++ b/dlls/wbemprox/query.c @@ -72,6 +72,11 @@ static BOOL eval_like( const WCHAR *lstr, const WCHAR *rstr ) static HRESULT eval_strcmp( UINT op, const WCHAR *lstr, const WCHAR *rstr, LONGLONG *val ) { + if (!lstr || !rstr) + { + *val = 0; + return S_OK; + } switch (op) { case OP_EQ:
participants (1)
-
Alexandre Julliard