summaryrefslogtreecommitdiffstats
path: root/sandbox/src
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/src')
-rw-r--r--sandbox/src/handle_closer_agent.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/src/handle_closer_agent.cc b/sandbox/src/handle_closer_agent.cc
index 38c174e1..78d060e 100644
--- a/sandbox/src/handle_closer_agent.cc
+++ b/sandbox/src/handle_closer_agent.cc
@@ -92,7 +92,7 @@ bool HandleCloserAgent::CloseHandles() {
if (NT_SUCCESS(0) && size == type_info_buffer.size())
rc = STATUS_INFO_LENGTH_MISMATCH;
}
- if (!NT_SUCCESS(rc)) {
+ if (!NT_SUCCESS(rc) || !type_info->Name.Buffer) {
++invalid_count;
continue;
}