summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src/dumper.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-09-04 19:21:26 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-09-04 19:21:26 +0300
commite80684d7a2ad3afff40ec1c211fba92bb457ea4f (patch)
tree4e405124f0b2c0e30bf935de375c3c00f4fa917e /plugins/CrashDumper/src/dumper.cpp
parentb82860d36b5c9e09918fc7db671412b81457e8f6 (diff)
CrashDumper:
- fixes #2043 (CrashDumper: add option to disable VI popup); - massive cleaning of options-related code; - version bump
Diffstat (limited to 'plugins/CrashDumper/src/dumper.cpp')
-rw-r--r--plugins/CrashDumper/src/dumper.cpp6
1 files changed, 3 insertions, 3 deletions
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"");