mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 13:21:28 +00:00
mfplat/tests: Use correct interface macro.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a0d4401ddc
commit
b6d8ea6253
|
@ -307,7 +307,7 @@ static void test_MFCreateMFByteStreamOnStream(void)
|
|||
hr = pMFCreateMFByteStreamOnStream(stream, &bytestream);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
|
||||
hr = IUnknown_QueryInterface(bytestream, &IID_IUnknown,
|
||||
hr = IMFByteStream_QueryInterface(bytestream, &IID_IUnknown,
|
||||
(void **)&unknown);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
ok((void *)unknown == (void *)bytestream, "got %p\n", unknown);
|
||||
|
@ -321,7 +321,7 @@ static void test_MFCreateMFByteStreamOnStream(void)
|
|||
ref = IMFByteStream_Release(bytestream2);
|
||||
ok(ref == 1, "got %u\n", ref);
|
||||
|
||||
hr = IUnknown_QueryInterface(bytestream, &IID_IMFAttributes,
|
||||
hr = IMFByteStream_QueryInterface(bytestream, &IID_IMFAttributes,
|
||||
(void **)&attributes);
|
||||
ok(hr == S_OK ||
|
||||
/* w7pro64 */
|
||||
|
@ -337,14 +337,14 @@ static void test_MFCreateMFByteStreamOnStream(void)
|
|||
|
||||
ok(attributes != NULL, "got NULL\n");
|
||||
|
||||
hr = IUnknown_QueryInterface(attributes, &IID_IUnknown,
|
||||
hr = IMFAttributes_QueryInterface(attributes, &IID_IUnknown,
|
||||
(void **)&unknown);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
ok((void *)unknown == (void *)bytestream, "got %p\n", unknown);
|
||||
ref = IUnknown_Release(unknown);
|
||||
ok(ref == 2, "got %u\n", ref);
|
||||
|
||||
hr = IUnknown_QueryInterface(attributes, &IID_IMFByteStream,
|
||||
hr = IMFAttributes_QueryInterface(attributes, &IID_IMFByteStream,
|
||||
(void **)&bytestream2);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
ok(bytestream2 == bytestream, "got %p\n", bytestream2);
|
||||
|
@ -375,7 +375,7 @@ static void test_MFCreateFile(void)
|
|||
MF_FILEFLAGS_NONE, filename, &bytestream);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
|
||||
hr = IUnknown_QueryInterface(bytestream, &IID_IMFAttributes,
|
||||
hr = IMFByteStream_QueryInterface(bytestream, &IID_IMFAttributes,
|
||||
(void **)&attributes);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
ok(attributes != NULL, "got NULL\n");
|
||||
|
|
Loading…
Reference in a new issue