wbemprox: Handle NULL operands in eval_strcmp.
This commit is contained in:
parent
e63b9f4ec0
commit
68f0e174d6
|
@ -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 )
|
static HRESULT eval_strcmp( UINT op, const WCHAR *lstr, const WCHAR *rstr, LONGLONG *val )
|
||||||
{
|
{
|
||||||
|
if (!lstr || !rstr)
|
||||||
|
{
|
||||||
|
*val = 0;
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
switch (op)
|
switch (op)
|
||||||
{
|
{
|
||||||
case OP_EQ:
|
case OP_EQ:
|
||||||
|
|
Loading…
Reference in New Issue