From 715926f307ec7d5ff76349ff3ed7b3dcc6862bb8 Mon Sep 17 00:00:00 2001 From: lx-s Date: Fri, 19 Dec 2025 08:27:38 +0100 Subject: [PATCH] Improved warning entry for wrong autostart path --- WinMute/WMSettings.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/WinMute/WMSettings.cpp b/WinMute/WMSettings.cpp index 7be2329..94c3c60 100644 --- a/WinMute/WMSettings.cpp +++ b/WinMute/WMSettings.cpp @@ -366,10 +366,12 @@ bool WMSettings::IsAutostartEnabled() } else { HKEY hRunKey = OpenAutostartKey(KEY_READ); if (hRunKey != nullptr) { - std::wstring path; - if (ReadStringFromRegistry(hRunKey, LX_SYSTEMS_AUTOSTART_KEY, path)) { - if (path != wmPath) { - log.LogInfo(L"Autostart entry has wrong path"); + std::wstring autostartPathFromReg; + if (ReadStringFromRegistry(hRunKey, LX_SYSTEMS_AUTOSTART_KEY, autostartPathFromReg)) { + if (autostartPathFromReg != wmPath) { + log.LogWarning(L"Registry entry for auto start has wrong executable path." + L"Current path \"%s\". Path in registry \"%s\"", + wmPath, autostartPathFromReg.c_str()); } else { isEnabled = true; } -- 2.43.0