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; } }