diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-15 19:53:52 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-15 19:53:52 +0300 |
commit | bb8e49d3e4a63cceaa9a68ef62229d87c1792535 (patch) | |
tree | 8d78a50f3a84ec7ebff5b16086c2ea1175998b42 /plugins/CrashDumper/src/dumper.cpp | |
parent | f9b6402b4ea11142d078f1446bd3ca487b5df172 (diff) |
fixes #3738 (CrashDumper: ошибочный показ активного журнала)
Diffstat (limited to 'plugins/CrashDumper/src/dumper.cpp')
-rw-r--r-- | plugins/CrashDumper/src/dumper.cpp | 6 |
1 files changed, 4 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);
|