Hans Leidekker : wbemprox: Handle NULL operands in eval_strcmp.

Alexandre Julliard julliard at winehq.org
Wed Oct 10 15:07:52 CDT 2012


Module: wine
Branch: master
Commit: 68f0e174d6de3b313a7cf4f22e72a40a40ec05fb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=68f0e174d6de3b313a7cf4f22e72a40a40ec05fb

Author: Hans Leidekker <hans at 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:




More information about the wine-cvs mailing list