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

Unified Diff: printing/print_destination_win.cc

Issue 11953003: Make printing build on Win64 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 months 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 | « printing/pdf_metafile_skia.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/print_destination_win.cc
===================================================================
--- printing/print_destination_win.cc (revision 177853)
+++ printing/print_destination_win.cc (working copy)
@@ -4,6 +4,7 @@
#include "printing/print_destination_interface.h"
+#include "base/safe_numerics.h"
#include "base/win/metro.h"
#include "win8/util/win8_util.h"
@@ -33,7 +34,8 @@
void* content,
size_t content_size) {
if (metro_set_print_page_content_)
- metro_set_print_page_content_(page_number - 1, content, content_size);
+ metro_set_print_page_content_(page_number - 1, content,
+ base::checked_numeric_cast<UINT32>(content_size));
}
private:
typedef void (*MetroSetPrintPageCount)(INT);
« no previous file with comments | « printing/pdf_metafile_skia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698