Improve: Change registry/mutex name of client program

This commit is contained in:
yuanyuanxiang
2025-12-22 10:52:38 +01:00
parent d580d282d8
commit 3aedb38217
4 changed files with 64 additions and 3 deletions

View File

@@ -217,7 +217,7 @@ int main(int argc, const char *argv[])
status = E_RUN;
HANDLE hMutex = ::CreateMutexA(NULL, TRUE, "ghost.exe");
HANDLE hMutex = ::CreateMutexA(NULL, TRUE, GetExeHashStr().c_str());
if (ERROR_ALREADY_EXISTS == GetLastError()) {
CloseHandle(hMutex);
hMutex = NULL;