Sebastian Lackner <sebastian(a)fds-team.de> writes:
> +#define check_pipe_handle_state(handle, r, c) \
> + do \
> + { \
> + memset(&fpi, 0x55, sizeof(fpi)); \
> + if (handle == INVALID_HANDLE_VALUE) break; \
> + res = pNtQueryInformationFile(handle, &iosb, &fpi, sizeof(fpi), (FILE_INFORMATION_CLASS)23); \
> + ok(!res, "NtQueryInformationFile returned %x\n", res); \
> + ok(fpi.ReadMode == r, "ReadMode == %x\n", fpi.ReadMode); \
> + ok(fpi.CompletionMode == c, "CompletionMode == %x\n", fpi.CompletionMode); \
> + } \
> + while (0)
Please use a function instead of a macro for that sort of thing.
--
Alexandre Julliard
julliard(a)winehq.org