From bb8e49d3e4a63cceaa9a68ef62229d87c1792535 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 15 Oct 2023 19:53:52 +0300 Subject: =?UTF-8?q?fixes=20#3738=20(CrashDumper:=20=D0=BE=D1=88=D0=B8?= =?UTF-8?q?=D0=B1=D0=BE=D1=87=D0=BD=D1=8B=D0=B9=20=D0=BF=D0=BE=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=20=D0=B0=D0=BA=D1=82=D0=B8=D0=B2=D0=BD=D0=BE=D0=B3=D0=BE?= =?UTF-8?q?=20=D0=B6=D1=83=D1=80=D0=BD=D0=B0=D0=BB=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/CrashDumper/src/dumper.cpp | 6 ++++-- plugins/CrashDumper/src/stdafx.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins') 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 . #include #include #include +#include #include #include "m_folders.h" -- cgit v1.2.3