Fix windows builds (exception_info is a fn)

This commit is contained in:
Robin Gareus 2021-07-12 04:57:53 +02:00
parent 6af9b0194e
commit 778aa6ed9f
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 4 additions and 4 deletions

View file

@ -132,10 +132,10 @@ scan_vst2 (std::string const& path, ARDOUR::PluginType type, bool force, bool ve
#ifdef PLATFORM_WINDOWS
static LONG WINAPI
crash_handler (EXCEPTION_POINTERS* exception_info)
crash_handler (EXCEPTION_POINTERS* exceptioninfo)
{
// TODO consider DrMingw if HAVE_DRMINGW
fprintf (stderr, "Error: %x\n", exception_info->ExceptionRecord->ExceptionCode);
fprintf (stderr, "Error: %x\n", exceptioninfo->ExceptionRecord->ExceptionCode);
PBD::stacktrace (cerr, 15, 2);
return EXCEPTION_CONTINUE_SEARCH;
}

View file

@ -119,10 +119,10 @@ scan_vst3 (std::string const& bundle_path, bool force, bool verbose)
#ifdef PLATFORM_WINDOWS
static LONG WINAPI
crash_handler (EXCEPTION_POINTERS* exception_info)
crash_handler (EXCEPTION_POINTERS* exceptioninfo)
{
// TODO consider DrMingw if HAVE_DRMINGW
fprintf (stderr, "Error: %x\n", exception_info->ExceptionRecord->ExceptionCode);
fprintf (stderr, "Error: %x\n", exceptioninfo->ExceptionRecord->ExceptionCode);
PBD::stacktrace (cerr, 15, 2);
return EXCEPTION_CONTINUE_SEARCH;
}