@@ -26,15 +26,15 @@ int main(int, char* argv[])
2626 SehGuard Guard;
2727
2828 // Injector version number
29- const std::tstring VerNum (_T (" 20180821 " ));
29+ const std::tstring VerNum (_T (" 20190819 " ));
3030
3131 // Version and copyright output
3232#ifdef _WIN64
3333 std::tcout << _T (" Injector x64 [Version " ) << VerNum << _T (" ]" ) << std::endl;
3434#else
3535 std::tcout << _T (" Injector x86 [Version " ) << VerNum << _T (" ]" ) << std::endl;
3636#endif
37- std::tcout << _T (" Copyright (c) 2009 Cypher, 2012-2018 Nefarius. All rights reserved." ) << std::endl << std::endl;
37+ std::tcout << _T (" Copyright (c) 2009 Cypher, 2012-2019 Nefarius. All rights reserved." ) << std::endl << std::endl;
3838
3939 argh::parser cmdl;
4040
@@ -104,15 +104,17 @@ int main(int, char* argv[])
104104 std::string optArg;
105105
106106 // Find and inject via process name
107- if (( cmdl ({ " -n" , " --process-name" }) >> optArg ))
107+ if (cmdl ({ " -n" , " --process-name" }))
108108 {
109+ optArg = cmdl ({ " -n" , " --process-name" }).str ();
109110 // Attempt injection via process name
110111 ProcID = Injector::Get ()->GetProcessIdByName (utf8_to_wstr (toLower (optArg)));
111112 }
112113
113114 // Find and inject via window name
114- if (( cmdl ({ " -w" , " --window-name" }) >> optArg ))
115+ if (cmdl ({ " -w" , " --window-name" }))
115116 {
117+ optArg = cmdl ({ " -w" , " --window-name" }).str ();
116118 // Attempt injection via window name
117119 ProcID = Injector::Get ()->GetProcessIdByWindow (utf8_to_wstr (optArg));
118120 }
0 commit comments