summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src/dumper.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-11-16 17:40:47 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-11-16 17:40:47 +0000
commit4b662b249bb2e7e19225c422d0df915bd0725037 (patch)
treed19d4396fad9bd4d456df182eb9a1be406a642cf /plugins/CrashDumper/src/dumper.cpp
parent72e702d5e19a2b3627ebeb0bb3b462ab3994b135 (diff)
Ability to disable MessageBox on crash (create BYTE value "ShowCrashMessageBox" = 0)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6923 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper/src/dumper.cpp')
-rw-r--r--plugins/CrashDumper/src/dumper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CrashDumper/src/dumper.cpp b/plugins/CrashDumper/src/dumper.cpp
index 63551c2355..e1ece5775f 100644
--- a/plugins/CrashDumper/src/dumper.cpp
+++ b/plugins/CrashDumper/src/dumper.cpp
@@ -681,6 +681,6 @@ void CreateCrashReport(HANDLE hDumpFile, PEXCEPTION_POINTERS exc_ptr, const TCHA
if (len > 8192) free(dst);
- if (msg && MessageBox(NULL, msg, TEXT("Miranda Crash Dumper"), MB_YESNO | MB_ICONERROR | MB_TASKMODAL | MB_DEFBUTTON2 | MB_TOPMOST) == IDYES)
+ if (db_get_b(0,PluginName,"ShowCrashMessageBox",1) && msg && MessageBox(NULL, msg, TEXT("Miranda Crash Dumper"), MB_YESNO | MB_ICONERROR | MB_TASKMODAL | MB_DEFBUTTON2 | MB_TOPMOST) == IDYES)
StoreStringToClip(buffer);
}