| Index: ppapi/shared_impl/vpn_provider_util.cc
|
| diff --git a/ppapi/shared_impl/vpn_provider_util.cc b/ppapi/shared_impl/vpn_provider_util.cc
|
| index 10da28aac4aca6171adc87f9b64f1ea3ea210db1..8241aa42ed7980289b725d3da9cc110236177078 100644
|
| --- a/ppapi/shared_impl/vpn_provider_util.cc
|
| +++ b/ppapi/shared_impl/vpn_provider_util.cc
|
| @@ -11,7 +11,7 @@
|
| uint32_t packet_size,
|
| std::unique_ptr<base::SharedMemory> shm)
|
| : capacity_(capacity),
|
| - packet_size_(packet_size),
|
| + max_packet_size_(packet_size),
|
| shm_(std::move(shm)),
|
| available_(capacity, true) {
|
| DCHECK(this->shm_);
|
| @@ -44,11 +44,11 @@
|
| NOTREACHED();
|
| return nullptr;
|
| }
|
| - return reinterpret_cast<char*>(shm_->memory()) + packet_size_ * id;
|
| + return reinterpret_cast<char*>(shm_->memory()) + max_packet_size_ * id;
|
| }
|
|
|
| base::SharedMemoryHandle VpnProviderSharedBuffer::GetHandle() {
|
| return shm_->handle();
|
| }
|
|
|
| -} // namespace ppapi
|
| +} // namespace ppapi
|
|
|