diff options
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/src/interception.cc | 2 | ||||
-rw-r--r-- | sandbox/src/interception_unittest.cc | 4 | ||||
-rw-r--r-- | sandbox/src/service_resolver.cc | 2 | ||||
-rw-r--r-- | sandbox/src/service_resolver_unittest.cc | 2 | ||||
-rw-r--r-- | sandbox/src/window.cc | 2 | ||||
-rw-r--r-- | sandbox/wow_helper/service64_resolver.cc | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/sandbox/src/interception.cc b/sandbox/src/interception.cc index f75fa3a..81657aa 100644 --- a/sandbox/src/interception.cc +++ b/sandbox/src/interception.cc @@ -89,7 +89,7 @@ bool InterceptionManager::InitializeInterceptions() { return true; // Nothing to do here size_t buffer_bytes = GetBufferSize(); - scoped_ptr<char> local_buffer(new char[buffer_bytes]); + scoped_array<char> local_buffer(new char[buffer_bytes]); if (!SetupConfigBuffer(local_buffer.get(), buffer_bytes)) return false; diff --git a/sandbox/src/interception_unittest.cc b/sandbox/src/interception_unittest.cc index 92e72c1..1c6838e 100644 --- a/sandbox/src/interception_unittest.cc +++ b/sandbox/src/interception_unittest.cc @@ -127,7 +127,7 @@ TEST(InterceptionManagerTest, BufferLayout1) { ASSERT_EQ(18, interceptions.interceptions_.size()); size_t buffer_size = interceptions.GetBufferSize(); - scoped_ptr<BYTE> local_buffer(new BYTE[buffer_size]); + scoped_array<BYTE> local_buffer(new BYTE[buffer_size]); ASSERT_TRUE(interceptions.SetupConfigBuffer(local_buffer.get(), buffer_size)); @@ -179,7 +179,7 @@ TEST(InterceptionManagerTest, BufferLayout2) { ASSERT_EQ(5, interceptions.interceptions_.size()); size_t buffer_size = interceptions.GetBufferSize(); - scoped_ptr<BYTE> local_buffer(new BYTE[buffer_size]); + scoped_array<BYTE> local_buffer(new BYTE[buffer_size]); ASSERT_TRUE(interceptions.SetupConfigBuffer(local_buffer.get(), buffer_size)); diff --git a/sandbox/src/service_resolver.cc b/sandbox/src/service_resolver.cc index 2fae55a..9cdd824 100644 --- a/sandbox/src/service_resolver.cc +++ b/sandbox/src/service_resolver.cc @@ -147,7 +147,7 @@ NTSTATUS ServiceResolverThunk::Setup(const void* target_module, return ret; size_t thunk_bytes = GetThunkSize(); - scoped_ptr<char> thunk_buffer(new char[thunk_bytes]); + scoped_array<char> thunk_buffer(new char[thunk_bytes]); ServiceFullThunk* thunk = reinterpret_cast<ServiceFullThunk*>( thunk_buffer.get()); diff --git a/sandbox/src/service_resolver_unittest.cc b/sandbox/src/service_resolver_unittest.cc index 6f7da8e..3af81f2 100644 --- a/sandbox/src/service_resolver_unittest.cc +++ b/sandbox/src/service_resolver_unittest.cc @@ -85,7 +85,7 @@ NTSTATUS PatchNtdll(const char* function, bool relaxed) { // Any pointer will do as an interception_entry_point void* function_entry = resolver; size_t thunk_size = resolver->GetThunkSize(); - scoped_ptr<char> thunk(new char[thunk_size]); + scoped_array<char> thunk(new char[thunk_size]); uint32 used; NTSTATUS ret = resolver->Setup(ntdll_base, NULL, function, NULL, diff --git a/sandbox/src/window.cc b/sandbox/src/window.cc index cd6022c..bc3b777 100644 --- a/sandbox/src/window.cc +++ b/sandbox/src/window.cc @@ -111,7 +111,7 @@ std::wstring GetWindowObjectName(HANDLE handle) { } // Create the buffer that will hold the name. - scoped_ptr<wchar_t> name_buffer(new wchar_t[size]); + scoped_array<wchar_t> name_buffer(new wchar_t[size]); // Query the name of the object. if (!::GetUserObjectInformation(handle, UOI_NAME, name_buffer.get(), size, diff --git a/sandbox/wow_helper/service64_resolver.cc b/sandbox/wow_helper/service64_resolver.cc index 8e6f8d9..2feb237 100644 --- a/sandbox/wow_helper/service64_resolver.cc +++ b/sandbox/wow_helper/service64_resolver.cc @@ -210,7 +210,7 @@ NTSTATUS Service64ResolverThunk::Setup(const void* target_module, return ret; size_t thunk_bytes = GetThunkSize(); - scoped_ptr<char> thunk_buffer(new char[thunk_bytes]); + scoped_array<char> thunk_buffer(new char[thunk_bytes]); ServiceFullThunk* thunk = reinterpret_cast<ServiceFullThunk*>( thunk_buffer.get()); |