From af946ad7a74f09fbf49e427aca34e9573796c232 Mon Sep 17 00:00:00 2001 From: "cpu@google.com" Date: Sat, 20 Sep 2008 04:00:27 +0000 Subject: Use of null string on DLLMatch happens on the bots - Not in my machine unless I incredibuild. - But change makes sense. Review URL: http://codereview.chromium.org/4006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2436 0039d316-1c4b-4281-b951-d872f2087c98 --- sandbox/src/interception_agent.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sandbox') diff --git a/sandbox/src/interception_agent.cc b/sandbox/src/interception_agent.cc index 6e59d71..3750b11 100644 --- a/sandbox/src/interception_agent.cc +++ b/sandbox/src/interception_agent.cc @@ -70,7 +70,8 @@ bool InterceptionAgent::DllMatch(const UNICODE_STRING* full_path, !g_nt.RtlCompareUnicodeString(¤t_name, full_path, case_insensitive)) return true; - if (!g_nt.RtlCompareUnicodeString(¤t_name, name, case_insensitive)) + if (name && + !g_nt.RtlCompareUnicodeString(¤t_name, name, case_insensitive)) return true; return false; -- cgit v1.1