ntdll: send_debug_event: don't send uninitialized bytes

Robert Shearman rob at codeweavers.com
Fri Nov 16 05:06:47 CST 2007


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.

-- 
Rob Shearman




More information about the wine-devel mailing list