[1/5] wbemprox: Handle NULL operands in eval_strcmp.
Hans Leidekker
hans at codeweavers.com
Wed Oct 10 05:00:58 CDT 2012
---
dlls/wbemprox/query.c | 5 +++++
1 file changed, 5 insertions(+)
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:
--
1.7.10.4
More information about the wine-patches
mailing list