From a16b7fbb83f4a4219abc08c1749f92d844a5e716 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sun, 21 Mar 2021 01:45:57 +0400 Subject: [PATCH] Fix path to executable in ComputeExternalUpdater --- Telegram/SourceFiles/core/launcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index e8ab106c66..f1d6931de8 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp @@ -108,7 +108,7 @@ void ComputeExternalUpdater() { while (!fileStream.atEnd()) { const auto path = fileStream.readLine(); - if (path == (cWorkingDir() + cExeName())) { + if (path == (cExeDir() + cExeName())) { SetUpdaterDisabledAtStartup(); return; }