diff --git a/AxibugRedirector/Program.cs b/AxibugRedirector/Program.cs index 59271a9..680655b 100644 --- a/AxibugRedirector/Program.cs +++ b/AxibugRedirector/Program.cs @@ -47,7 +47,8 @@ namespace AxibugRedirector if (type == 1) { Console.Write("请输入目标进程PID:"); - if (int.TryParse(readStr, out int pid)) + string readpid = Console.ReadLine(); + if (int.TryParse(readpid, out int pid)) { if (DoInjectByPid(pid)) {