Index: sandbox/win/src/resolver_32.cc |
diff --git a/sandbox/win/src/resolver_32.cc b/sandbox/win/src/resolver_32.cc |
index e5d7be374aaee5aa4b5f791fc06cad9ede931363..a591a8b1dd943b7bd10244d5bd438a8b718a91e9 100644 |
--- a/sandbox/win/src/resolver_32.cc |
+++ b/sandbox/win/src/resolver_32.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 { |
@@ -62,7 +66,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; |
#pragma warning(push) |
#pragma warning(disable: 4311) |