Index: sandbox/win/src/window.cc |
diff --git a/sandbox/win/src/window.cc b/sandbox/win/src/window.cc |
index 445cb177d7caeca0dbc634673f255423c10468f8..d8de967272661360a9309ee6bf571c4bfed4b47d 100644 |
--- a/sandbox/win/src/window.cc |
+++ b/sandbox/win/src/window.cc |
@@ -111,7 +111,7 @@ std::wstring GetWindowObjectName(HANDLE handle) { |
} |
// Create the buffer that will hold the name. |
- scoped_array<wchar_t> name_buffer(new wchar_t[size]); |
+ scoped_ptr<wchar_t[]> name_buffer(new wchar_t[size]); |
// Query the name of the object. |
if (!::GetUserObjectInformation(handle, UOI_NAME, name_buffer.get(), size, |