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

Unified Diff: sandbox/win/src/resolver_32.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 | « no previous file | sandbox/win/src/resolver_64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | sandbox/win/src/resolver_64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698