From e80684d7a2ad3afff40ec1c211fba92bb457ea4f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Sep 2019 19:21:26 +0300 Subject: CrashDumper: - fixes #2043 (CrashDumper: add option to disable VI popup); - massive cleaning of options-related code; - version bump --- plugins/CrashDumper/src/dumper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/CrashDumper/src/dumper.cpp') diff --git a/plugins/CrashDumper/src/dumper.cpp b/plugins/CrashDumper/src/dumper.cpp index 8e89470c5b..99f4c801cb 100644 --- a/plugins/CrashDumper/src/dumper.cpp +++ b/plugins/CrashDumper/src/dumper.cpp @@ -140,7 +140,7 @@ static int CompareDlls(const wchar_t *p1, const wchar_t *p2) static void GetPluginsString(CMStringW &buffer, unsigned &flags) { - buffer.AppendFormat(L"Service Mode: %s\r\n", servicemode ? L"Yes" : L"No"); + buffer.AppendFormat(L"Service Mode: %s\r\n", g_plugin.bServiceMode ? L"Yes" : L"No"); wchar_t path[MAX_PATH]; GetModuleFileName(nullptr, path, MAX_PATH); @@ -163,7 +163,7 @@ static void GetPluginsString(CMStringW &buffer, unsigned &flags) bool loaded = false; mir_snwprintf(fname, MAX_PATH - (fname - path), L"\\plugins\\%s", FindFileData.cFileName); HMODULE hModule = GetModuleHandle(path); - if (hModule == nullptr && servicemode) { + if (hModule == nullptr && g_plugin.bServiceMode) { hModule = LoadLibrary(path); loaded = true; } @@ -449,7 +449,7 @@ void PrintVersionInfo(CMStringW& buffer, unsigned flags) GetWeatherStrings(buffer, flags); } - if (flags & VI_FLAG_PRNVAR && !servicemode) { + if (flags & VI_FLAG_PRNVAR && !g_plugin.bServiceMode) { buffer.AppendFormat(L"\r\n%sProtocols and Accounts:%s\r\n-------------------------------------------------------------------------------\r\n", (flags & VI_FLAG_FORMAT) ? L"[b]" : L"", (flags & VI_FLAG_FORMAT) ? L"[/b]" : L""); -- cgit v1.2.3