summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-12-02 20:46:45 +0000
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-03 22:15:07 +0000
commit711c871ad2949184f254edae5d03ef900b904f12 (patch)
treed92837b6fb5ae3cce23220589e1c4dad42ff8f11 /desktop
parent16f34befd4b2b645e83295091e980856c2437c5b (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> (cherry picked from commit 8b86e9de388fff673bc86c14246eff8ed6aa591e) Reviewed-on: https://gerrit.libreoffice.org/31587 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.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;