summaryrefslogtreecommitdiffstats
path: root/rlz/win/lib/machine_id_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'rlz/win/lib/machine_id_win.cc')
-rw-r--r--rlz/win/lib/machine_id_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/rlz/win/lib/machine_id_win.cc b/rlz/win/lib/machine_id_win.cc
index 8eb138a..fe0917c 100644
--- a/rlz/win/lib/machine_id_win.cc
+++ b/rlz/win/lib/machine_id_win.cc
@@ -41,7 +41,7 @@ bool GetSystemVolumeSerialNumber(int* number) {
bool GetComputerSid(const wchar_t* account_name, SID* sid, DWORD sid_size) {
static const DWORD kStartDomainLength = 128; // reasonable to start with
- scoped_array<wchar_t> domain_buffer(new wchar_t[kStartDomainLength]);
+ scoped_ptr<wchar_t[]> domain_buffer(new wchar_t[kStartDomainLength]);
DWORD domain_size = kStartDomainLength;
DWORD sid_dword_size = sid_size;
SID_NAME_USE sid_name_use;