summaryrefslogtreecommitdiffstats
path: root/base/process_util_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/process_util_win.cc')
-rw-r--r--base/process_util_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/process_util_win.cc b/base/process_util_win.cc
index 3addf51..3ac2ca4 100644
--- a/base/process_util_win.cc
+++ b/base/process_util_win.cc
@@ -252,7 +252,7 @@ bool GetProcessIntegrityLevel(ProcessHandle process, IntegrityLevel *level) {
GetLastError() != ERROR_INSUFFICIENT_BUFFER)
return false;
- scoped_array<char> token_label_bytes(new char[token_info_length]);
+ scoped_ptr<char[]> token_label_bytes(new char[token_info_length]);
if (!token_label_bytes.get())
return false;
@@ -921,7 +921,7 @@ bool EnableLowFragmentationHeap() {
// Gives us some extra space in the array in case a thread is creating heaps
// at the same time we're querying them.
static const int MARGIN = 8;
- scoped_array<HANDLE> heaps(new HANDLE[number_heaps + MARGIN]);
+ scoped_ptr<HANDLE[]> heaps(new HANDLE[number_heaps + MARGIN]);
number_heaps = GetProcessHeaps(number_heaps + MARGIN, heaps.get());
if (!number_heaps)
return false;