Bug 974356 - 1/4 - Initialize mOtherProcess to an invalid handle value - r=bent

This commit is contained in:
Benoit Jacob 2014-02-25 08:12:49 -05:00
parent 68e4a027d8
commit 740bf1682d
2 changed files with 8 additions and 0 deletions

View File

@ -56,6 +56,12 @@ class NeckoParent;
namespace ipc {
#ifdef XP_WIN
const base::ProcessHandle kInvalidProcessHandle = INVALID_HANDLE_VALUE;
#else
const base::ProcessHandle kInvalidProcessHandle = -1;
#endif
class ProtocolFdMapping;
class ProtocolCloneContext;

View File

@ -2884,6 +2884,8 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
[ ExprVar.THIS ]) ]),
ExprMemberInit(p.lastActorIdVar(),
[ p.actorIdInit(self.side) ]),
ExprMemberInit(p.otherProcessVar(),
[ ExprVar('ipc::kInvalidProcessHandle') ]),
ExprMemberInit(p.lastShmemIdVar(),
[ p.shmemIdInit(self.side) ]),
ExprMemberInit(p.stateVar(),