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

Unified Diff: sandbox/win/src/resolver_64.cc

Issue 544333002: Remove NT_PLACE, it's not really used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sandbox/win/src/resolver_32.cc ('k') | sandbox/win/src/sandbox_nt_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/src/resolver_64.cc
diff --git a/sandbox/win/src/resolver_64.cc b/sandbox/win/src/resolver_64.cc
index ca58b202993dd69c21e2d70e4070b4b8447862b9..8b2cc53c97cc58a3bcda0e492cc4c766243f614d 100644
--- a/sandbox/win/src/resolver_64.cc
+++ b/sandbox/win/src/resolver_64.cc
@@ -4,6 +4,10 @@
#include "sandbox/win/src/resolver.h"
+// For placement new. This file must not depend on the CRT at runtime, but
+// placement operator new is inline.
+#include <new>
+
#include "sandbox/win/src/sandbox_nt_util.h"
namespace {
@@ -53,7 +57,7 @@ bool ResolverThunk::SetInternalThunk(void* storage, size_t storage_bytes,
if (storage_bytes < sizeof(InternalThunk))
return false;
- InternalThunk* thunk = new(storage, NT_PLACE) InternalThunk;
+ InternalThunk* thunk = new(storage) InternalThunk;
thunk->interceptor_function = reinterpret_cast<ULONG_PTR>(interceptor);
return true;
« no previous file with comments | « sandbox/win/src/resolver_32.cc ('k') | sandbox/win/src/sandbox_nt_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698