ntdll: Fix a compile time warning.
This commit is contained in:
parent
b03f877163
commit
d3d06c46d2
|
@ -1290,8 +1290,8 @@ static void ignore_server_ioctl_struct_holes (ULONG code, const void *in_buffer,
|
||||||
#ifdef VALGRIND_MAKE_MEM_DEFINED
|
#ifdef VALGRIND_MAKE_MEM_DEFINED
|
||||||
# define IGNORE_STRUCT_HOLE(buf, size, t, f1, f2) \
|
# define IGNORE_STRUCT_HOLE(buf, size, t, f1, f2) \
|
||||||
do { \
|
do { \
|
||||||
if ((size) >= FIELD_OFFSET(t, f2) && \
|
if (FIELD_OFFSET(t, f1) + sizeof(((t *)0)->f1) < FIELD_OFFSET(t, f2)) \
|
||||||
FIELD_OFFSET(t, f1) + sizeof(((t *)0)->f1) < FIELD_OFFSET(t, f2)) \
|
if ((size) >= FIELD_OFFSET(t, f2)) \
|
||||||
VALGRIND_MAKE_MEM_DEFINED( \
|
VALGRIND_MAKE_MEM_DEFINED( \
|
||||||
(const char *)(buf) + FIELD_OFFSET(t, f1) + sizeof(((t *)0)->f1), \
|
(const char *)(buf) + FIELD_OFFSET(t, f1) + sizeof(((t *)0)->f1), \
|
||||||
FIELD_OFFSET(t, f2) - FIELD_OFFSET(t, f1) + sizeof(((t *)0)->f1)); \
|
FIELD_OFFSET(t, f2) - FIELD_OFFSET(t, f1) + sizeof(((t *)0)->f1)); \
|
||||||
|
|
Loading…
Reference in New Issue