ntdll: send_debug_event: don't send uninitialized bytes

Dan Kegel dank at kegel.com
Fri Nov 16 08:51:30 CST 2007


On Nov 16, 2007 3:06 AM, Robert Shearman <rob at codeweavers.com> wrote:
> > +    return sizeof(*rec)
> > +    - (EXCEPTION_MAXIMUM_PARAMETERS-rec->NumberParameters) * sizeof(ULONG_PTR);
>
> FIELD_OFFSET exists for this exact purpose.

OK, I'll bite: is
+    return FIELD_OFFSET(EXCEPTION_RECORD, ExceptionInformation)
+    + rec->NumberParameters * sizeof(ULONG_PTR);
really clearer?
- Dan



More information about the wine-devel mailing list