Chromium Code Reviews| 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; |
| } |