X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25c884be6d987b08dde4fd2d612e2fba29262f4e..f8e045e24bb7f37af742fe6afb4a454fc900bfe5:/src/msw/crashrpt.cpp?ds=inline diff --git a/src/msw/crashrpt.cpp b/src/msw/crashrpt.cpp index 26a9abb711..c3411045b4 100644 --- a/src/msw/crashrpt.cpp +++ b/src/msw/crashrpt.cpp @@ -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 WXUNUSED(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 WXUNUSED(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;