OSDN Git Service

Fix a bug where all applications launched by javaw.exe are
authorKazuhiro Fujieda <fujieda@users.sourceforge.jp>
Wed, 4 Apr 2012 02:45:24 +0000 (11:45 +0900)
committerKazuhiro Fujieda <fujieda@users.sourceforge.jp>
Wed, 4 Apr 2012 02:45:24 +0000 (11:45 +0900)
recognized as exlipse.exe.

xkeymacsdll/AppName.cpp

index 8cd497e..396d1ea 100644 (file)
@@ -91,11 +91,11 @@ void AppName::CorrectAppName(TCHAR (&text)[WINDOW_TEXT_LENGTH], TCHAR (&appName)
                        _tcscpy_s(text, s);\r
                }\r
        } else if (!_tcsicmp(appName, _T("javaw.exe"))) {\r
-               if (s.Find(_T(" - Eclipse Platform")) || s == _T("Find/Replace"))\r
+               if (s.Find(_T(" - Eclipse Platform")) >= 0 || s == _T("Find/Replace"))\r
                        _tcscpy_s(appName, "eclipse.exe");\r
-               else if (s.Find(_T("BlueJ")))\r
+               else if (s.Find(_T("BlueJ")) >= 0)\r
                        _tcscpy_s(appName, "bluej.exe");\r
-               else if (s.Find(_T("JUDE")))\r
+               else if (s.Find(_T("JUDE")) >= 0)\r
                        _tcscpy_s(appName, "jude.exe");\r
        }\r
 }\r