diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-20 04:00:27 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-20 04:00:27 +0000 |
commit | af946ad7a74f09fbf49e427aca34e9573796c232 (patch) | |
tree | 6d0299824960dfced120195d13e0bf34d3c5406d /sandbox | |
parent | ce4e1b0221cfebad0325137dc5330495775d97c2 (diff) | |
download | chromium_src-af946ad7a74f09fbf49e427aca34e9573796c232.zip chromium_src-af946ad7a74f09fbf49e427aca34e9573796c232.tar.gz chromium_src-af946ad7a74f09fbf49e427aca34e9573796c232.tar.bz2 |
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
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/src/interception_agent.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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; |