Browse Source

for chocolatey apps use the file path in mutex name

Scott Brogden 7 years ago
parent
commit
e47ec60fec
2 changed files with 1 additions and 2 deletions
  1. 1 1
      CP_Main.cpp
  2. 0 1
      InternetUpdate.cpp

+ 1 - 1
CP_Main.cpp

@@ -280,7 +280,7 @@ BOOL CCP_MainApp::InitInstance()
 	Log(cs);
 
 	CString csMutex("Ditto Is Now Running");
-	if(g_Opt.GetIsPortableDitto() || g_Opt.GetIsWindowsApp())
+	if(g_Opt.GetIsPortableDitto() || g_Opt.GetIsWindowsApp() || g_Opt.GetIsChocolateyApp())
 	{
 		csMutex += " ";
 		csMutex += g_Opt.GetExeFileName();

+ 0 - 1
InternetUpdate.cpp

@@ -153,7 +153,6 @@ VersionInfo CInternetUpdate::GetRunningVersion()
 						verInfo.Minor = (lpFFI->dwProductVersionMS >> 0) & 0xffff;
 						verInfo.Revision = (lpFFI->dwProductVersionLS >> 16) & 0xffff;
 						verInfo.Build = (lpFFI->dwProductVersionLS >> 0) & 0xffff;
-
 					}
 				}
 			}