From 8b86e9de388fff673bc86c14246eff8ed6aa591e Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 2 Dec 2016 20:46:45 +0000 Subject: 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 Reviewed-by: Michael Meeks Tested-by: Michael Meeks --- desktop/source/app/sofficemain.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop/source/app/sofficemain.cxx') 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> 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; -- cgit