FEXpidof: Fixes another missing std::filesystem throw

Turns out std::filesystem::exists throws as well if there was an
underlying OS API failure.
This commit is contained in:
Ryan Houdek committed 2026-03-18 12:10:22 -07:00
1 parent 9f9b20eac0
commit 740350c8ea
1 file changed
+2 -2
+2 -2
View File
@@ -147,7 +147,8 @@ static void IteratePids() {
auto ExePath = Entry.path() / "exe";
// If cmdline doesn't exist then skip.
if (!std::filesystem::exists(CMDLinePath)) {
std::error_code ec;
if (!std::filesystem::exists(CMDLinePath, ec) || ec) {
continue;
}
@@ -177,7 +178,6 @@ static void IteratePids() {
}
}
std::error_code ec;
std::string exe_link = std::filesystem::read_symlink(ExePath, ec);
auto deleted_pos = exe_link.find(" (deleted)");