From: lx-s Date: Fri, 19 Dec 2025 07:27:38 +0000 (+0100) Subject: Improved warning entry for wrong autostart path X-Git-Tag: 2.6.0.0~106 X-Git-Url: https://repos.lx-s.de/gitweb/?a=commitdiff_plain;h=715926f307ec7d5ff76349ff3ed7b3dcc6862bb8;p=winmute.git Improved warning entry for wrong autostart path --- 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; }