From cbe3ef7e57f566146de014ad5c49be9f4062be05 Mon Sep 17 00:00:00 2001 From: derrod Date: Sun, 29 Jan 2023 10:08:43 +0100 Subject: [PATCH] Revert "UI/updater: Fix files with similar hashes clashing" This reverts commit 7396c211be75da3bce74cf8d2661a481a5c10fff. --- UI/win-update/updater/updater.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/UI/win-update/updater/updater.cpp b/UI/win-update/updater/updater.cpp index 9b78b2812..877362bcd 100644 --- a/UI/win-update/updater/updater.cpp +++ b/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; } }