X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d0089653228874c88553e9494d8077b27ea6cd3..49e3e2c25f93dd8114b36155de1756139b7f18b9:/src/msw/crashrpt.cpp diff --git a/src/msw/crashrpt.cpp b/src/msw/crashrpt.cpp index 8831a96f32..6bbdaa2b25 100644 --- a/src/msw/crashrpt.cpp +++ b/src/msw/crashrpt.cpp @@ -58,7 +58,7 @@ #include "wx/datetime.h" -#include "wx/dynload.h" +#include "wx/dynlib.h" #include "wx/msw/crashrpt.h" @@ -173,7 +173,7 @@ enum SymbolTag // ---------------------------------------------------------------------------- // low level wxBusyCursor replacement: we use Win32 API directly here instead -// of going through wxWindows calls as this could be dangerous +// of going through wxWidgets calls as this could be dangerous class BusyCursor { public: @@ -1089,7 +1089,13 @@ wxString wxCrashReportImpl::GetExceptionString(DWORD dwCode) #endif // wxUSE_DBGHELP -bool wxCrashReportImpl::Generate(int flags) +bool wxCrashReportImpl::Generate( +#if wxUSE_DBGHELP + int flags +#else + int WXUNUSED(flags) +#endif +) { if ( m_hFile == INVALID_HANDLE_VALUE ) return false; @@ -1214,7 +1220,7 @@ bool wxCrashReportImpl::Generate(int flags) #else // !wxUSE_DBGHELP Output(_T("Support for crash report generation was not included ") - _T("in this wxWindows version.")); + _T("in this wxWidgets version.")); #endif // wxUSE_DBGHELP/!wxUSE_DBGHELP return false;