• R/O
  • HTTP
  • SSH
  • HTTPS

xkeymacs: Commit


Commit MetaInfo

Revision1d53267b8cd0f46ca034c7d9c6a9d4ec4370f6aa (tree)
Time2012-08-24 12:19:16
AuthorKazuhiro Fujieda <fujieda@user...>
CommiterKazuhiro Fujieda

Log Message

Make CXkeymacsApp::Start64bitProcess wait until the child process starts

This fixes a bug where XKeymacs drops any key type on 64bit applications
when it starts automatically just after reboot.

Change Summary

Incremental Difference

--- a/xkeymacs/xkeymacs.cpp
+++ b/xkeymacs/xkeymacs.cpp
@@ -109,6 +109,9 @@ BOOL CXkeymacsApp::Start64bitProcess()
109109 ZeroMemory(&pi, sizeof(pi));
110110 if (!CreateProcess(path, NULL, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
111111 return FALSE;
112+ // wait until the child process starts.
113+ if (WaitForInputIdle(pi.hProcess, INFINITE))
114+ return FALSE;
112115 // close unused handles
113116 CloseHandle(pi.hProcess);
114117 CloseHandle(pi.hThread);
Show on old repository browser