Rémi Bernon (@rbernon) commented about dlls/mfsrcsnk/tests/mfsrcsnk.c:
+ +static ULONG WINAPI bufsize_test_byte_stream_AddRef(IMFByteStream *iface) +{ + return ++bufsize_test_byte_stream_from_iface(iface)->refcount; +} + +static ULONG WINAPI bufsize_test_byte_stream_Release(IMFByteStream *iface) +{ + struct bufsize_test_byte_stream *stream = bufsize_test_byte_stream_from_iface(iface); + ULONG rc = --stream->refcount; + if (rc == 0) { + IMFByteStream_Release(stream->inner); + free(stream); + } + return rc; +} Please keep coding style consistent with canonical and surrounding Wine code, including for tests. This includes parameter case style, brace wrapping style, helper naming patterns, Interlocked* for reference count, hr and malloc checks, etc.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9710#note_126399