Windows backtrace: VEH must use stdcall

Fixes issue #2794

(cherry picked from commit cd54a8fee9)
This commit is contained in:
Руслан Ижбулатов
2019-11-20 10:59:54 +00:00
committed by Jehan
parent 27dd38531e
commit ce4865670b

View File

@ -90,7 +90,7 @@ static void gimp_backtrace_set_thread_name (DWORD tid,
static gboolean gimp_backtrace_enumerate_threads (void);
static LONG gimp_backtrace_exception_handler (PEXCEPTION_POINTERS info);
static LONG WINAPI gimp_backtrace_exception_handler (PEXCEPTION_POINTERS info);
/* static variables */
@ -222,7 +222,7 @@ gimp_backtrace_enumerate_threads (void)
return n_threads > 0;
}
static LONG
static LONG WINAPI
gimp_backtrace_exception_handler (PEXCEPTION_POINTERS info)
{
#define EXCEPTION_SET_THREAD_NAME ((DWORD) 0x406D1388)