mirror of
https://github.com/zodiacon/WFPExplorer
synced 2026-06-08 18:39:31 +00:00
fix potential crash if PID is not running
This commit is contained in:
@@ -25,7 +25,8 @@ CString ProcessHelper::GetProcessName(DWORD pid) {
|
||||
}
|
||||
::CloseHandle(hSnap);
|
||||
}
|
||||
name = processes.at(pid);
|
||||
if (auto it = processes.find(pid); it != processes.end())
|
||||
name = it->second;
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
<DllDataFileName />
|
||||
</Midl>
|
||||
<PostBuildEvent>
|
||||
<Command>signtool sign /i DigiCert /fd sha256 $(TargetPath)</Command>
|
||||
<Command>signtool sign /i DigiCert /n "Pavel Yosifovich" /fd sha256 $(TargetPath)</Command>
|
||||
</PostBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user