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

Unified Diff: ipc/ipc_message_utils.cc

Issue 12381066: Add IPC handling for INVALID_HANDLE_VALUE on Win64 builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message_utils.cc
===================================================================
--- ipc/ipc_message_utils.cc (revision 185796)
+++ ipc/ipc_message_utils.cc (working copy)
@@ -763,7 +763,11 @@
uint32 temp;
if (!m->ReadUInt32(iter, &temp))
return false;
- *r = reinterpret_cast<HANDLE>(temp);
+ // On Win64 all HANDLE values are 32-bits except for INVALID_HANDLE_VALUE.
+ if (reinterpret_cast<uint32>(INVALID_HANDLE_VALUE) == temp)
piman 2013/03/03 16:50:18 why not simply reading and writing the data of the
jschuh 2013/03/03 17:15:05 32-bits is the correct size because valid handles
piman 2013/03/03 17:31:38 Do we use IPC between 32 and 64 bit processes? Do
jschuh 2013/03/03 17:41:24 Absolutely. We have it today with NaCl, and off th
+ *r = INVALID_HANDLE_VALUE;
+ else
+ *r = reinterpret_cast<HANDLE>(temp);
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698