Index: util/win/process_info.cc |
diff --git a/util/win/process_info.cc b/util/win/process_info.cc |
index 3e048cf016d7335377c9b1f36dff32492e9bd7fa..2ac3a98bfacbe937f5bb60edda1e93bbb74c51be 100644 |
--- a/util/win/process_info.cc |
+++ b/util/win/process_info.cc |
@@ -150,11 +150,11 @@ scoped_ptr<uint8_t[]> QueryObject( |
if (!NT_SUCCESS(status)) { |
NTSTATUS_LOG(ERROR, status) << "NtQueryObject"; |
- return scoped_ptr<uint8_t[]>(); |
+ return nullptr; |
} |
DCHECK_GE(return_length, minimum_size); |
- return buffer.Pass(); |
+ return buffer; |
} |
} // namespace |