X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d0089653228874c88553e9494d8077b27ea6cd3..7eb872f4d67141f723745f04b478dda03907d4b6:/src/msw/crashrpt.cpp?ds=sidebyside diff --git a/src/msw/crashrpt.cpp b/src/msw/crashrpt.cpp index 8831a96f32..9ba2dbbb06 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; @@ -1182,7 +1188,7 @@ bool wxCrashReportImpl::Generate(int flags) SymSetOptions(SYMOPT_DEFERRED_LOADS | SYMOPT_UNDNAME); // Initialize DbgHelp - if ( SymInitialize(GetCurrentProcess(), NULL, TRUE /* invade */) ) + if ( ::SymInitialize(GetCurrentProcess(), NULL, TRUE /* invade */) ) { OutputStack(pCtx, flags); @@ -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;