Chromium Code Reviews| Index: chrome/installer/test/alternate_version_generator.cc |
| diff --git a/chrome/installer/test/alternate_version_generator.cc b/chrome/installer/test/alternate_version_generator.cc |
| index 9e54561ca96640f37ba28626fbaa13ecbaf58227..7811be4455d15b90ff6f8c704c8b9094f0637d4c 100644 |
| --- a/chrome/installer/test/alternate_version_generator.cc |
| +++ b/chrome/installer/test/alternate_version_generator.cc |
| @@ -179,7 +179,7 @@ bool MappedFile::Initialize(base::PlatformFile file) { |
| if (base::GetPlatformFileInfo(file, &file_info)) { |
| if (file_info.size <= |
| - static_cast<int64>(std::numeric_limits<size_t>::max())) { |
| + static_cast<int64>(std::numeric_limits<DWORD>::max())) { |
|
robertshield
2013/04/29 20:04:45
Really curious: how does this fix the test?
|
| mapping_ = CreateFileMapping(file, NULL, PAGE_READWRITE, 0, |
| static_cast<DWORD>(file_info.size), NULL); |
| if (mapping_ != NULL) { |
| @@ -194,7 +194,7 @@ bool MappedFile::Initialize(base::PlatformFile file) { |
| PLOG(DFATAL) << "CreateFileMapping failed"; |
| } |
| } else { |
| - LOG(DFATAL) << "Files larger than " << std::numeric_limits<size_t>::max() |
| + LOG(DFATAL) << "Files larger than " << std::numeric_limits<DWORD>::max() |
| << " are not supported."; |
| } |
| } else { |