summaryrefslogtreecommitdiffstats
path: root/base/event_trace_provider_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/event_trace_provider_win.cc')
-rw-r--r--base/event_trace_provider_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/event_trace_provider_win.cc b/base/event_trace_provider_win.cc
index 69fcd57..4c43b72 100644
--- a/base/event_trace_provider_win.cc
+++ b/base/event_trace_provider_win.cc
@@ -99,7 +99,7 @@ ULONG EtwTraceProvider::Log(const EtwEventClass& event_class,
event.fields[0].DataPtr = reinterpret_cast<ULONG64>(message);
event.fields[0].Length = message ?
- sizeof(message[0]) * (1 + strlen(message)) : 0;
+ static_cast<ULONG>(sizeof(message[0]) * (1 + strlen(message))) : 0;
return ::TraceEvent(session_handle_, &event.header);
}
@@ -113,7 +113,7 @@ ULONG EtwTraceProvider::Log(const EtwEventClass& event_class,
event.fields[0].DataPtr = reinterpret_cast<ULONG64>(message);
event.fields[0].Length = message ?
- sizeof(message[0]) * (1 + wcslen(message)) : 0;
+ static_cast<ULONG>(sizeof(message[0]) * (1 + wcslen(message))) : 0;
return ::TraceEvent(session_handle_, &event.header);
}