diff options
Diffstat (limited to 'sandbox/src/window.cc')
-rw-r--r-- | sandbox/src/window.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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, |