On 5/2/22 07:28, Anton Baskanov wrote:
ok(!memcmp(pmt, &expect_mt, offsetof(AM_MEDIA_TYPE, cbFormat)),
"%u: Media types didn't match.\n", i);
ok(!memcmp(pmt->pbFormat, &expect_format, sizeof(WAVEFORMATEX)),
"%u: Format blocks didn't match.\n", i);
For future reference, we have a compare_media_type() helper in other tests for this.