diff options
author | liamjm <liamjm@chromium.org> | 2016-02-04 12:39:37 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-04 20:41:54 +0000 |
commit | 0ac1938b8c3523f90257313b2275c87a5b163361 (patch) | |
tree | 2471543185f3598e9ab75bf30fe58ee4467fbcac /sandbox | |
parent | 78a3685d7b92e6ebf4a91b3cbea78b702f567fa3 (diff) | |
download | chromium_src-0ac1938b8c3523f90257313b2275c87a5b163361.zip chromium_src-0ac1938b8c3523f90257313b2275c87a5b163361.tar.gz chromium_src-0ac1938b8c3523f90257313b2275c87a5b163361.tar.bz2 |
fix typo in OPEN_THREAD_ID
Review URL: https://codereview.chromium.org/1666233002
Cr-Commit-Position: refs/heads/master@{#373610}
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/win/src/interceptors.h | 2 | ||||
-rw-r--r-- | sandbox/win/src/interceptors_64.cc | 2 | ||||
-rw-r--r-- | sandbox/win/src/policy_broker.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sandbox/win/src/interceptors.h b/sandbox/win/src/interceptors.h index a17447a..5ee6fd3 100644 --- a/sandbox/win/src/interceptors.h +++ b/sandbox/win/src/interceptors.h @@ -19,7 +19,7 @@ enum InterceptorId { SET_INFORMATION_THREAD_ID, OPEN_THREAD_TOKEN_ID, OPEN_THREAD_TOKEN_EX_ID, - OPEN_TREAD_ID, + OPEN_THREAD_ID, OPEN_PROCESS_ID, OPEN_PROCESS_TOKEN_ID, OPEN_PROCESS_TOKEN_EX_ID, diff --git a/sandbox/win/src/interceptors_64.cc b/sandbox/win/src/interceptors_64.cc index ef0b5f0..cdef943 100644 --- a/sandbox/win/src/interceptors_64.cc +++ b/sandbox/win/src/interceptors_64.cc @@ -141,7 +141,7 @@ SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenThread64( PHANDLE thread, ACCESS_MASK desired_access, POBJECT_ATTRIBUTES object_attributes, PCLIENT_ID client_id) { NtOpenThreadFunction orig_fn = reinterpret_cast< - NtOpenThreadFunction>(g_originals[OPEN_TREAD_ID]); + NtOpenThreadFunction>(g_originals[OPEN_THREAD_ID]); return TargetNtOpenThread(orig_fn, thread, desired_access, object_attributes, client_id); } diff --git a/sandbox/win/src/policy_broker.cc b/sandbox/win/src/policy_broker.cc index a946ebc..e6c2b26 100644 --- a/sandbox/win/src/policy_broker.cc +++ b/sandbox/win/src/policy_broker.cc @@ -98,7 +98,7 @@ bool SetupNtdllImports(TargetProcess *child) { bool SetupBasicInterceptions(InterceptionManager* manager) { // Interceptions provided by process_thread_policy, without actual policy. - if (!INTERCEPT_NT(manager, NtOpenThread, OPEN_TREAD_ID, 20) || + if (!INTERCEPT_NT(manager, NtOpenThread, OPEN_THREAD_ID, 20) || !INTERCEPT_NT(manager, NtOpenProcess, OPEN_PROCESS_ID, 20) || !INTERCEPT_NT(manager, NtOpenProcessToken, OPEN_PROCESS_TOKEN_ID, 16)) return false; |