summaryrefslogtreecommitdiffstats
path: root/sandbox/src/target_services.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/src/target_services.cc')
-rw-r--r--sandbox/src/target_services.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/sandbox/src/target_services.cc b/sandbox/src/target_services.cc
index 2bfe67d..72f6d4c 100644
--- a/sandbox/src/target_services.cc
+++ b/sandbox/src/target_services.cc
@@ -84,29 +84,22 @@ bool TargetServicesBase::TestIPCPing(int version) {
if (NULL == memory) {
return false;
}
-
-#if defined(_WIN64)
- // Bug 27218: We don't have IPC yet.
- return false;
-#else
SharedMemIPCClient ipc(memory);
CrossCallReturn answer = {0};
if (1 == version) {
uint32 tick1 = ::GetTickCount();
- uint32 cookie = 717111;
+ uint32 cookie = 717115;
ResultCode code = CrossCall(ipc, IPC_PING1_TAG, cookie, &answer);
if (SBOX_ALL_OK != code) {
return false;
}
-
// We should get two extended returns values from the IPC, one is the
// tick count on the broker and the other is the cookie times two.
if ((answer.extended_count != 2)) {
return false;
}
-
// We test the first extended answer to be within the bounds of the tick
// count only if there was no tick count wraparound.
uint32 tick2 = ::GetTickCount();
@@ -128,16 +121,13 @@ bool TargetServicesBase::TestIPCPing(int version) {
if (SBOX_ALL_OK != code) {
return false;
}
-
if (cookie != 717111 * 3) {
return false;
}
} else {
return false;
}
-
return true;
-#endif
}
bool ProcessState::IsKernel32Loaded() {