| Index: mojo/system/core_impl.cc
|
| diff --git a/mojo/system/core_impl.cc b/mojo/system/core_impl.cc
|
| index 00d1107d1297b572b4f730fbe9bcfe82011cd50c..104a373f2f2f04eec9ad9bf5cc647f39aadc8f19 100644
|
| --- a/mojo/system/core_impl.cc
|
| +++ b/mojo/system/core_impl.cc
|
| @@ -106,9 +106,9 @@ MojoResult CoreImpl::WaitMany(const MojoHandle* handles,
|
| const MojoWaitFlags* flags,
|
| uint32_t num_handles,
|
| MojoDeadline deadline) {
|
| - if (!VerifyUserPointer(handles, num_handles, sizeof(handles[0])))
|
| + if (!VerifyUserPointer<MojoHandle>(handles, num_handles))
|
| return MOJO_RESULT_INVALID_ARGUMENT;
|
| - if (!VerifyUserPointer(flags, num_handles, sizeof(flags[0])))
|
| + if (!VerifyUserPointer<MojoWaitFlags>(flags, num_handles))
|
| return MOJO_RESULT_INVALID_ARGUMENT;
|
| if (num_handles < 1)
|
| return MOJO_RESULT_INVALID_ARGUMENT;
|
|
|