Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1913)

Unified Diff: base/file_util_win.cc

Issue 371073: Add support for 64-bit Windows build: base and chrome/app (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/app/chrome_dll_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_win.cc
===================================================================
--- base/file_util_win.cc (revision 33729)
+++ base/file_util_win.cc (working copy)
@@ -805,8 +805,10 @@
if (length_ == INVALID_FILE_SIZE)
return false;
+ // length_ value comes from GetFileSize() above. GetFileSize() returns DWORD,
+ // therefore the cast here is safe.
file_mapping_ = ::CreateFileMapping(file_, NULL, PAGE_READONLY,
- 0, length_, NULL);
+ 0, static_cast<DWORD>(length_), NULL);
if (file_mapping_ == INVALID_HANDLE_VALUE)
return false;
« no previous file with comments | « no previous file | chrome/app/chrome_dll_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698