Problem: invalid syntax for calling convention on function pointer

Solution: fix syntax and formatting, remove C-ism for defining struct
This commit is contained in:
Simon Giesecke 2019-08-19 10:13:11 +02:00 committed by GitHub
parent 64d58c432c
commit e9b67001dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,11 +117,14 @@ struct thread_info_t
#pragma pack(pop)
}
typedef struct _MY_EXCEPTION_REGISTRATION_RECORD
struct MY_EXCEPTION_REGISTRATION_RECORD
{
struct _MY_EXCEPTION_REGISTRATION_RECORD *Next;
EXCEPTION_DISPOSITION NTAPI (*Handler) (EXCEPTION_RECORD*, void*, CONTEXT*, void*);
} MY_EXCEPTION_REGISTRATION_RECORD;
typedef EXCEPTION_DISPOSITION (NTAPI *HandlerFunctionType) (
EXCEPTION_RECORD *, void *, CONTEXT *, void *);
MY_EXCEPTION_REGISTRATION_RECORD *Next;
HandlerFunctionType Handler;
};
static EXCEPTION_DISPOSITION NTAPI continue_execution (EXCEPTION_RECORD *rec,
void *frame,