Re: avifil32: Fix EditStreamSetInfo wine checks [try 2]
17 Aug
2010
17 Aug
'10
12:20 p.m.
Alexandre Goujon <ale.goujon(a)gmail.com> writes:
+#define TEST_SETINFO_(m) \ + hres = EditStreamSetInfo(stream, &info, sizeof(AVISTREAMINFO) ); \ + ok( hres == 0, "got 0x%08X, expected 0\n", hres); \ + hres = AVIStreamInfo(stream, &info2, sizeof(AVISTREAMINFO) ); \ + ok( hres == 0, "got 0x%08X, expected 0\n", hres); \ + ok( info2.m == info.m, "EditStreamSetInfo did not update "#m" parameter\n" ); + +#define TEST_SETINFO(m) \ + info.m++; \ + TEST_SETINFO_(m); \ + \ + info.m = 0; \ + TEST_SETINFO_(m);
Please avoid that sort of macros. Add a helper function if necessary, or just spell things out explicitly. -- Alexandre Julliard julliard(a)winehq.org
5603
Age (days ago)
5603
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard