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

Unified Diff: content/child/npapi/webplugin_delegate_impl_win.cc

Issue 1422773008: Fixing remaining VC++ 2015 64-bit build breaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to latest Created 5 years, 1 month 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
Index: content/child/npapi/webplugin_delegate_impl_win.cc
diff --git a/content/child/npapi/webplugin_delegate_impl_win.cc b/content/child/npapi/webplugin_delegate_impl_win.cc
index d64af01c4fdb989cbb2ff0049d7983a3bedfeae9..6033fe3ee6b1820afde59b1a11102e9ae46150eb 100644
--- a/content/child/npapi/webplugin_delegate_impl_win.cc
+++ b/content/child/npapi/webplugin_delegate_impl_win.cc
@@ -595,7 +595,8 @@ void WebPluginDelegateImpl::ThrottleMessage(WNDPROC proc, HWND hwnd,
UINT message, WPARAM wParam,
LPARAM lParam) {
MSG msg;
- msg.time = reinterpret_cast<DWORD>(proc);
+ // Cast through uintptr_t and then DWORD to make the truncation explicit.
+ msg.time = static_cast<DWORD>(reinterpret_cast<uintptr_t>(proc));
msg.hwnd = hwnd;
msg.message = message;
msg.wParam = wParam;

Powered by Google App Engine
This is Rietveld 408576698