summaryrefslogtreecommitdiffstats
path: root/sandbox/src
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/src')
-rw-r--r--sandbox/src/interception_agent.cc3
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(&current_name, full_path, case_insensitive))
return true;
- if (!g_nt.RtlCompareUnicodeString(&current_name, name, case_insensitive))
+ if (name &&
+ !g_nt.RtlCompareUnicodeString(&current_name, name, case_insensitive))
return true;
return false;