Chromium Code Reviews| Index: sandbox/win/src/interceptors_64.cc |
| =================================================================== |
| --- sandbox/win/src/interceptors_64.cc (revision 229897) |
| +++ sandbox/win/src/interceptors_64.cc (working copy) |
| @@ -249,36 +249,23 @@ |
| // ----------------------------------------------------------------------- |
| -SANDBOX_INTERCEPT HANDLE WINAPI TargetCreateEventW64( |
| - LPSECURITY_ATTRIBUTES security_attributes, BOOL manual_reset, |
| - BOOL initial_state, LPCWSTR name) { |
| - CreateEventWFunction orig_fn = reinterpret_cast< |
| - CreateEventWFunction>(g_originals[CREATE_EVENTW_ID]); |
| - return TargetCreateEventW(orig_fn, security_attributes, manual_reset, |
| - initial_state, name); |
| +SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtOpenEvent64( |
|
rvargas (doing something else)
2013/10/23 01:36:57
nit: follow the declaration order
ananta
2013/10/23 06:20:18
Done.
|
| + PHANDLE event_handle, DWORD desired_access, |
| + POBJECT_ATTRIBUTES object_attributes) { |
| + NtOpenEventFunction orig_fn = reinterpret_cast< |
| + NtOpenEventFunction>(g_originals[OPEN_EVENT_ID]); |
| + return TargetNtOpenEvent(orig_fn, event_handle, desired_access, |
| + object_attributes); |
| } |
| -SANDBOX_INTERCEPT HANDLE WINAPI TargetCreateEventA64( |
| - LPSECURITY_ATTRIBUTES security_attributes, BOOL manual_reset, |
| - BOOL initial_state, LPCSTR name) { |
| - CreateEventAFunction orig_fn = reinterpret_cast< |
| - CreateEventAFunction>(g_originals[CREATE_EVENTA_ID]); |
| - return TargetCreateEventA(orig_fn, security_attributes, manual_reset, |
| - initial_state, name); |
| +SANDBOX_INTERCEPT NTSTATUS WINAPI TargetNtCreateEvent64( |
| + PHANDLE event_handle, ACCESS_MASK desired_access, |
| + POBJECT_ATTRIBUTES object_attributes, EVENT_TYPE event_type, |
| + BOOLEAN initial_state) { |
| + NtCreateEventFunction orig_fn = reinterpret_cast< |
| + NtCreateEventFunction>(g_originals[CREATE_EVENT_ID]); |
| + return TargetNtCreateEvent(orig_fn, event_handle, desired_access, |
| + object_attributes, event_type, initial_state); |
| } |
| -SANDBOX_INTERCEPT HANDLE WINAPI TargetOpenEventW64( |
| - ACCESS_MASK desired_access, BOOL inherit_handle, LPCWSTR name) { |
| - OpenEventWFunction orig_fn = reinterpret_cast< |
| - OpenEventWFunction>(g_originals[OPEN_EVENTW_ID]); |
| - return TargetOpenEventW(orig_fn, desired_access, inherit_handle, name); |
| -} |
| - |
| -SANDBOX_INTERCEPT HANDLE WINAPI TargetOpenEventA64( |
| - ACCESS_MASK desired_access, BOOL inherit_handle, LPCSTR name) { |
| - OpenEventAFunction orig_fn = reinterpret_cast< |
| - OpenEventAFunction>(g_originals[OPEN_EVENTA_ID]); |
| - return TargetOpenEventA(orig_fn, desired_access, inherit_handle, name); |
| -} |
| - |
| } // namespace sandbox |