| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sandbox/win/src/handle_closer.h" | 5 #include "sandbox/win/src/handle_closer.h" |
| 6 | 6 |
| 7 #include <stddef.h> | |
| 8 | |
| 9 #include "base/logging.h" | 7 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/win/windows_version.h" | 9 #include "base/win/windows_version.h" |
| 12 #include "sandbox/win/src/interceptors.h" | 10 #include "sandbox/win/src/interceptors.h" |
| 13 #include "sandbox/win/src/internal_types.h" | 11 #include "sandbox/win/src/internal_types.h" |
| 14 #include "sandbox/win/src/nt_internals.h" | 12 #include "sandbox/win/src/nt_internals.h" |
| 15 #include "sandbox/win/src/process_thread_interception.h" | 13 #include "sandbox/win/src/process_thread_interception.h" |
| 16 #include "sandbox/win/src/win_utils.h" | 14 #include "sandbox/win/src/win_utils.h" |
| 17 | 15 |
| 18 namespace { | 16 namespace { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 185 |
| 188 if (NT_SUCCESS(result) && name->Buffer && name->Length) | 186 if (NT_SUCCESS(result) && name->Buffer && name->Length) |
| 189 handle_name->assign(name->Buffer, name->Length / sizeof(wchar_t)); | 187 handle_name->assign(name->Buffer, name->Length / sizeof(wchar_t)); |
| 190 else | 188 else |
| 191 handle_name->clear(); | 189 handle_name->clear(); |
| 192 | 190 |
| 193 return NT_SUCCESS(result); | 191 return NT_SUCCESS(result); |
| 194 } | 192 } |
| 195 | 193 |
| 196 } // namespace sandbox | 194 } // namespace sandbox |
| OLD | NEW |