diff options
author | gregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-03 01:24:30 +0000 |
---|---|---|
committer | gregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-03 01:24:30 +0000 |
commit | 11e1a2a71fa01d356f534989265f366006fb4f52 (patch) | |
tree | c6aa441d8e830bd636a6d8dd90262c3ff361d65e /base/event_trace_provider_win.h | |
parent | 2f7995ec2a5679dcff8db39913811ee822a6106e (diff) | |
download | chromium_src-11e1a2a71fa01d356f534989265f366006fb4f52.zip chromium_src-11e1a2a71fa01d356f534989265f366006fb4f52.tar.gz chromium_src-11e1a2a71fa01d356f534989265f366006fb4f52.tar.bz2 |
Add support for 64-bit Windows build
BUG=28176
TEST=none
Review URL: http://codereview.chromium.org/455036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33645 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/event_trace_provider_win.h')
-rw-r--r-- | base/event_trace_provider_win.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/event_trace_provider_win.h b/base/event_trace_provider_win.h index bf186ee..9668740 100644 --- a/base/event_trace_provider_win.h +++ b/base/event_trace_provider_win.h @@ -56,9 +56,9 @@ template <size_t N> class EtwMofEvent: public EtwMofEventBase<N> { 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); } } |