| Index: mojo/edk/embedder/simple_platform_shared_buffer_win.cc
|
| diff --git a/mojo/edk/embedder/simple_platform_shared_buffer_win.cc b/mojo/edk/embedder/simple_platform_shared_buffer_win.cc
|
| index 073746517e19037f0a4db7c37dfc83e2bdeb111e..fd3de83bc4a2f3a7de3d64ea904bf52cce2b537b 100644
|
| --- a/mojo/edk/embedder/simple_platform_shared_buffer_win.cc
|
| +++ b/mojo/edk/embedder/simple_platform_shared_buffer_win.cc
|
| @@ -33,9 +33,12 @@
|
| // TODO(vtl): Unlike |base::SharedMemory|, we don't round up the size (to a
|
| // multiple of 64 KB). This may cause problems with NaCl. Cross this bridge
|
| // when we get there. crbug.com/210609
|
| - handle_.reset(PlatformHandle(
|
| - CreateFileMapping(INVALID_HANDLE_VALUE, nullptr, PAGE_READWRITE, 0,
|
| - static_cast<DWORD>(num_bytes_), nullptr)));
|
| + handle_.reset(PlatformHandle(CreateFileMapping(INVALID_HANDLE_VALUE,
|
| + nullptr,
|
| + PAGE_READWRITE,
|
| + 0,
|
| + static_cast<DWORD>(num_bytes_),
|
| + nullptr)));
|
| if (!handle_.is_valid()) {
|
| PLOG(ERROR) << "CreateFileMapping";
|
| return false;
|
| @@ -65,9 +68,11 @@
|
| DCHECK_LE(static_cast<uint64_t>(real_offset),
|
| static_cast<uint64_t>(std::numeric_limits<DWORD>::max()));
|
|
|
| - void* real_base =
|
| - MapViewOfFile(handle_.get().handle, FILE_MAP_READ | FILE_MAP_WRITE, 0,
|
| - static_cast<DWORD>(real_offset), real_length);
|
| + void* real_base = MapViewOfFile(handle_.get().handle,
|
| + FILE_MAP_READ | FILE_MAP_WRITE,
|
| + 0,
|
| + static_cast<DWORD>(real_offset),
|
| + real_length);
|
| if (!real_base) {
|
| PLOG(ERROR) << "MapViewOfFile";
|
| return nullptr;
|
|
|