Skip to content

Commit

Permalink
修复更新Process类时的typo
Browse files Browse the repository at this point in the history
  • Loading branch information
imba-tjd committed Nov 1, 2021
1 parent e63c544 commit 5aafbed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MisakaTranslator-WPF/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,15 @@ private void StartTranslateByGid(int gid) {
{
try
{
if (p.MainModule.FileName == gameInfoList[gid].GameName)
if (p.MainModule.FileName == gameInfoList[gid].FilePath)
pidList.Add(p);
else
p.Dispose();
}
catch (System.ComponentModel.Win32Exception)
{
//这个地方直接跳过,是因为32位程序确实会读到64位的系统进程,而系统进程是不能被访问的
continue;
p.Dispose();
}
}

Expand Down

0 comments on commit 5aafbed

Please sign in to comment.