summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-12-02 20:46:45 +0000
committerMichael Meeks <michael.meeks@collabora.com>2016-12-03 10:32:17 +0000
commit8b86e9de388fff673bc86c14246eff8ed6aa591e (patch)
tree85abb78e03d491dfd3ab6696fde8a1a1d7d41b6a /desktop
parente8b43ac1ef8811e7b02e78bf48f6d71c822339d7 (diff)
first cut at adding a GDI handles attribute to the windows crash report.
Change-Id: I4e6fee65a1416398f6f59feb8734b3b00c0aed3b Reviewed-on: https://gerrit.libreoffice.org/31570 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/sofficemain.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx
index b0d155b54c65..27b9efa600db 100644
--- a/desktop/source/app/sofficemain.cxx
+++ b/desktop/source/app/sofficemain.cxx
@@ -98,6 +98,7 @@ static bool dumpCallback(const wchar_t* path, const wchar_t* id,
std::wstring_convert<std::codecvt_utf8<wchar_t>> conv1;
std::string aPath = conv1.to_bytes(std::wstring(path)) + conv1.to_bytes(std::wstring(id)) + ".dmp";
minidump_file << "DumpFile=" << aPath << "\n";
+ minidump_file << "GDIHandles=" << ::GetGuiResources (::GetCurrentProcess(), GR_GDIOBJECTS) << "\n";
minidump_file.close();
SAL_WARN("desktop", "minidump generated: " << aPath);
return succeeded;