Skip to content

Commit 6157366

Browse files
committed
Fixed heartbeattimer only looking for "HCMExternal.exe" instead of "HaloCheckpointManager.exe" too
1 parent ab396db commit 6157366

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

HCMInternal/HeartbeatTimer.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,19 @@ HeartbeatTimer::HeartbeatTimer()
4545
DWORD HCMExternalPID = findProcess(L"HCMExternal.exe");
4646

4747
HandlePtr h(OpenProcess(PROCESS_QUERY_INFORMATION, TRUE, HCMExternalPID));
48-
if (!h) throw HCMInitException(std::format("Could not open HCMExternal process with perm PROCESS_QUERY_INFORMATION, {}", GetLastError()));
48+
if (!h)
49+
{
50+
HCMExternalPID = findProcess(L"HaloCheckpointManager.exe");
51+
h = HandlePtr(OpenProcess(PROCESS_QUERY_INFORMATION, TRUE, HCMExternalPID));
52+
53+
if (!h)
54+
{
55+
throw HCMInitException(std::format("Could not open HCMExternal process with perm PROCESS_QUERY_INFORMATION, {}", GetLastError()));
56+
}
57+
58+
}
59+
60+
4961
HCMExternalHandle = std::move(h);
5062

5163
_thd = std::thread([this]()

OutputPath.vsmacro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
C:\\Users\\mauri\\source\\repos\\HaloCheckpointManager4\\HCMExternal\\bin\\x64\\Debug\\net7.0-windows
1+
C:\\Users\\mauri\\source\\repos\\HaloCheckpointManager4\\HCMExternal\\bin\\x64\\Release\\net7.0-windows

0 commit comments

Comments
 (0)