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

Unified Diff: base/event_trace_provider_win.h

Issue 455036: Add support for 64-bit Windows build (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 | base/event_trace_provider_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/event_trace_provider_win.h
===================================================================
--- base/event_trace_provider_win.h (revision 33536)
+++ base/event_trace_provider_win.h (working copy)
@@ -56,9 +56,9 @@
void SetField(int field, size_t size, const void *data) {
// DCHECK(field < N);
- if (field < N) {
+ if ((field < N) && (size <= kuint32max)) {
fields[field].DataPtr = reinterpret_cast<ULONG64>(data);
- fields[field].Length = size;
+ fields[field].Length = static_cast<ULONG>(size);
}
}
« no previous file with comments | « no previous file | base/event_trace_provider_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698