[PATCH 2/5] amstream/tests: Use CoCreateInstance() directly instead of BaseOutputPinImpl_InitAllocator().
Zebediah Figura
zfigura at codeweavers.com
Mon Feb 7 23:22:45 CST 2022
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/amstream/tests/amstream.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/amstream/tests/amstream.c b/dlls/amstream/tests/amstream.c
index 5b3e78e0583..6b17ba6d430 100644
--- a/dlls/amstream/tests/amstream.c
+++ b/dlls/amstream/tests/amstream.c
@@ -1140,7 +1140,8 @@ static HRESULT WINAPI testsource_DecideAllocator(struct strmbase_source *iface,
* when it is able to do so it's behavior changes slightly
* (e.g. it uses dynamic format change instead of reconnecting in SetFormat).
* We don't yet implement the custom allocator so force the standard one for now. */
- hr = BaseOutputPinImpl_InitAllocator(iface, alloc);
+ hr = CoCreateInstance(&CLSID_MemoryAllocator, NULL, CLSCTX_INPROC_SERVER,
+ &IID_IMemAllocator, (void **)alloc);
ok(hr == S_OK, "Got hr %#x.\n", hr);
IMemInputPin_GetAllocatorRequirements(pin, &props);
--
2.34.1
More information about the wine-devel
mailing list