Dan Kegel wrote:
+/* Returns size of initialized part of a particular EXCEPTION_RECORD */ +static int exception_record_size( const EXCEPTION_RECORD *rec ) +{
- return sizeof(*rec)
- (EXCEPTION_MAXIMUM_PARAMETERS-rec->NumberParameters) * sizeof(ULONG_PTR);
+}
FIELD_OFFSET exists for this exact purpose.