• R/O
  • HTTP
  • SSH
  • HTTPS

xkeymacs: Commit


Commit MetaInfo

Revision293f38472b0ffc9f33ba6f4d67b5b3ff50677a0a (tree)
Time2012-04-04 11:45:24
AuthorKazuhiro Fujieda <fujieda@user...>
CommiterKazuhiro Fujieda

Log Message

Fix a bug where all applications launched by javaw.exe are
recognized as exlipse.exe.

Change Summary

Incremental Difference

--- a/xkeymacsdll/AppName.cpp
+++ b/xkeymacsdll/AppName.cpp
@@ -91,11 +91,11 @@ void AppName::CorrectAppName(TCHAR (&text)[WINDOW_TEXT_LENGTH], TCHAR (&appName)
9191 _tcscpy_s(text, s);
9292 }
9393 } else if (!_tcsicmp(appName, _T("javaw.exe"))) {
94- if (s.Find(_T(" - Eclipse Platform")) || s == _T("Find/Replace"))
94+ if (s.Find(_T(" - Eclipse Platform")) >= 0 || s == _T("Find/Replace"))
9595 _tcscpy_s(appName, "eclipse.exe");
96- else if (s.Find(_T("BlueJ")))
96+ else if (s.Find(_T("BlueJ")) >= 0)
9797 _tcscpy_s(appName, "bluej.exe");
98- else if (s.Find(_T("JUDE")))
98+ else if (s.Find(_T("JUDE")) >= 0)
9999 _tcscpy_s(appName, "jude.exe");
100100 }
101101 }
Show on old repository browser