Pārlūkot izejas kodu

Revert "UI/updater: Fix files with similar hashes clashing"

This reverts commit 7396c211be75da3bce74cf8d2661a481a5c10fff.
derrod 2 gadi atpakaļ
vecāks
revīzija
cbe3ef7e57
1 mainītis faili ar 0 papildinājumiem un 4 dzēšanām
  1. 0 4
      UI/win-update/updater/updater.cpp

+ 0 - 4
UI/win-update/updater/updater.cpp

@@ -952,16 +952,12 @@ static void UpdateWithPatchIfAvailable(const char *name, const char *hash,
 		update.fileSize = size;
 		update.patchable = true;
 
-		/* ensure the filename is unique */
-		static long increment = 0;
-
 		/* Since the patch depends on the previous version, we can
 		 * no longer rely on the temp name being unique to the
 		 * new file's hash */
 		update.tempPath = tempPath;
 		update.tempPath += L"\\";
 		update.tempPath += patchHashStr;
-		update.tempPath += std::to_wstring(increment++);
 		break;
 	}
 }