[4/4] ntdll/tests: Add tests for FILE_PIPE_INFORMATION.

Alexandre Julliard julliard at winehq.org
Wed Aug 20 12:41:27 CDT 2014


Sebastian Lackner <sebastian at 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 at winehq.org



More information about the wine-devel mailing list