summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-10-15 19:53:52 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-10-15 19:53:52 +0300
commitbb8e49d3e4a63cceaa9a68ef62229d87c1792535 (patch)
tree8d78a50f3a84ec7ebff5b16086c2ea1175998b42 /plugins
parentf9b6402b4ea11142d078f1446bd3ca487b5df172 (diff)
fixes #3738 (CrashDumper: ошибочный показ активного журнала)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/CrashDumper/src/dumper.cpp6
-rw-r--r--plugins/CrashDumper/src/stdafx.h1
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/CrashDumper/src/dumper.cpp b/plugins/CrashDumper/src/dumper.cpp
index a7797da086..86bf2ebf47 100644
--- a/plugins/CrashDumper/src/dumper.cpp
+++ b/plugins/CrashDumper/src/dumper.cpp
@@ -142,8 +142,10 @@ static void GetPluginsString(CMStringW &buffer, unsigned &flags)
{
buffer.AppendFormat(L"Service Mode: %s\r\n", g_plugin.bServiceMode ? L"Yes" : L"No");
- CMStringW szViewerName(db_get_wsm(0, "SRMM", "Logger", L"built-in"));
- buffer.AppendFormat(L"SRMM Log Viewer: %s\r\n", szViewerName.c_str());
+ if (auto *pLogClass = Srmm_GetWindowClass(0))
+ buffer.AppendFormat(L"SRMM Log Viewer: %s\r\n", _A2T(pLogClass->szShortName).get());
+ else
+ buffer.AppendFormat(L"SRMM Log Viewer: %s\r\n", L"missing");
wchar_t path[MAX_PATH];
GetModuleFileName(nullptr, path, MAX_PATH);
diff --git a/plugins/CrashDumper/src/stdafx.h b/plugins/CrashDumper/src/stdafx.h
index dfe9421cb0..72c153afed 100644
--- a/plugins/CrashDumper/src/stdafx.h
+++ b/plugins/CrashDumper/src/stdafx.h
@@ -37,6 +37,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <m_popup.h>
#include <m_netlib.h>
#include <m_db_int.h>
+#include <m_srmm_int.h>
#include <m_gui.h>
#include "m_folders.h"