Chromium Code Reviews| Index: sandbox/win/src/handle_dispatcher.cc |
| diff --git a/sandbox/win/src/handle_dispatcher.cc b/sandbox/win/src/handle_dispatcher.cc |
| index 6acb6f9ceb3029ad1c95456d4ee3c04a0c46e2aa..fda7aacaaef351f480f821c58753b07088a35be3 100644 |
| --- a/sandbox/win/src/handle_dispatcher.cc |
| +++ b/sandbox/win/src/handle_dispatcher.cc |
| @@ -44,7 +44,6 @@ bool HandleDispatcher::DuplicateHandleProxy(IPCInfo* ipc, |
| DWORD target_process_id, |
| DWORD desired_access, |
| DWORD options) { |
| - NTSTATUS error; |
| static NtQueryObject QueryObject = NULL; |
| if (!QueryObject) |
| ResolveNTFunctionPtr("NtQueryObject", &QueryObject); |
| @@ -65,9 +64,10 @@ bool HandleDispatcher::DuplicateHandleProxy(IPCInfo* ipc, |
| OBJECT_TYPE_INFORMATION* type_info = |
| reinterpret_cast<OBJECT_TYPE_INFORMATION*>(buffer); |
| ULONG size = sizeof(buffer) - sizeof(wchar_t); |
| - error = QueryObject(handle, ObjectTypeInformation, type_info, size, &size); |
| + NTSTATUS error = |
| + QueryObject(handle, ObjectTypeInformation, type_info, size, &size); |
| if (!NT_SUCCESS(error)) { |
| - ipc->return_info.win32_result = error; |
| + ipc->return_info.nt_status = error; |
|
Peter Kasting
2014/07/09 18:55:18
Note that because win32_result and nt_status are i
cpu_(ooo_6.6-7.5)
2014/07/10 00:49:34
yeah that reads like it was a bug, but it can beco
Peter Kasting
2014/07/10 01:19:31
I don't know if I understand this comment.
As far
|
| return false; |
| } |
| type_info->Name.Buffer[type_info->Name.Length / sizeof(wchar_t)] = L'\0'; |