Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Side by Side Diff: sandbox/win/src/handle_closer.cc

Issue 1538283002: Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: macros Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sandbox/win/src/handle_closer.h ('k') | sandbox/win/src/handle_closer_agent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
9 #include "base/win/windows_version.h" 11 #include "base/win/windows_version.h"
10 #include "sandbox/win/src/interceptors.h" 12 #include "sandbox/win/src/interceptors.h"
11 #include "sandbox/win/src/internal_types.h" 13 #include "sandbox/win/src/internal_types.h"
12 #include "sandbox/win/src/nt_internals.h" 14 #include "sandbox/win/src/nt_internals.h"
13 #include "sandbox/win/src/process_thread_interception.h" 15 #include "sandbox/win/src/process_thread_interception.h"
14 #include "sandbox/win/src/win_utils.h" 16 #include "sandbox/win/src/win_utils.h"
15 17
16 namespace { 18 namespace {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 187
186 if (NT_SUCCESS(result) && name->Buffer && name->Length) 188 if (NT_SUCCESS(result) && name->Buffer && name->Length)
187 handle_name->assign(name->Buffer, name->Length / sizeof(wchar_t)); 189 handle_name->assign(name->Buffer, name->Length / sizeof(wchar_t));
188 else 190 else
189 handle_name->clear(); 191 handle_name->clear();
190 192
191 return NT_SUCCESS(result); 193 return NT_SUCCESS(result);
192 } 194 }
193 195
194 } // namespace sandbox 196 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/src/handle_closer.h ('k') | sandbox/win/src/handle_closer_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698