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; |