From 5392ab3e4b5038cc10abad85a234d5a183a3c6c6 Mon Sep 17 00:00:00 2001 From: Kazuhiro Fujieda Date: Wed, 13 Jul 2011 15:15:38 +0900 Subject: [PATCH] Make the timeout of CallNamedPipe with IPC_PIPE forever. --- xkeymacs/xkeymacs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xkeymacs/xkeymacs.cpp b/xkeymacs/xkeymacs.cpp index 20979c7..3da6dc4 100644 --- a/xkeymacs/xkeymacs.cpp +++ b/xkeymacs/xkeymacs.cpp @@ -125,7 +125,7 @@ BOOL CXkeymacsApp::SendIPCMessage(DWORD msg) if (!m_bIsWow64) return TRUE; DWORD ack, read; - return CallNamedPipe(IPC_PIPE, &msg, sizeof(msg), &ack, sizeof(DWORD), &read, 10000); + return CallNamedPipe(IPC_PIPE, &msg, sizeof(msg), &ack, sizeof(DWORD), &read, NMPWAIT_WAIT_FOREVER); } int CXkeymacsApp::ExitInstance() -- 2.11.0