Re: [4/4] ntdll/tests: Add tests for FILE_PIPE_INFORMATION.
20 Aug
2014
20 Aug
'14
5:41 p.m.
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
4133
Age (days ago)
4133
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard