ntdll: Fix a compile time warning.

This commit is contained in:
Nikolay Sivov 2011-01-29 00:58:18 +03:00 committed by Alexandre Julliard
parent b03f877163
commit d3d06c46d2
1 changed files with 5 additions and 5 deletions

View File

@ -1290,11 +1290,11 @@ 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)); \
} while (0) } while (0)
switch (code) switch (code)