[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: [4/4] ntdll/tests: Add tests for FILE_PIPE_INFORMATION.
From: Alexandre Julliard <julliard () winehq ! org>
Date: 2014-08-20 17:41:27
Message-ID: 8738crvz20.fsf () wine ! dyndns ! org
[Download RAW message or body]
Sebastian Lackner <sebastian@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@winehq.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic