wmvcore: Implement WMCreateWriterPriv.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4966774049
commit
7381cecd55
|
@ -22,6 +22,8 @@
|
|||
|
||||
#include "wine/test.h"
|
||||
|
||||
HRESULT WINAPI WMCreateWriterPriv(IWMWriter **writer);
|
||||
|
||||
static void test_wmwriter_interfaces(void)
|
||||
{
|
||||
HRESULT hr;
|
||||
|
@ -197,6 +199,21 @@ void test_profile_manager_interfaces(void)
|
|||
IWMProfileManager_Release(profile);
|
||||
}
|
||||
|
||||
static void test_WMCreateWriterPriv(void)
|
||||
{
|
||||
IWMWriter *writer, *writer2;
|
||||
HRESULT hr;
|
||||
|
||||
hr = WMCreateWriterPriv(&writer);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
|
||||
hr = IWMWriter_QueryInterface(writer, &IID_IWMWriter, (void**)&writer2);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
|
||||
IWMWriter_Release(writer);
|
||||
IWMWriter_Release(writer2);
|
||||
}
|
||||
|
||||
START_TEST(wmvcore)
|
||||
{
|
||||
HRESULT hr;
|
||||
|
@ -209,6 +226,7 @@ START_TEST(wmvcore)
|
|||
test_wmreader_interfaces();
|
||||
test_wmwriter_interfaces();
|
||||
test_profile_manager_interfaces();
|
||||
test_WMCreateWriterPriv();
|
||||
|
||||
CoUninitialize();
|
||||
}
|
||||
|
|
|
@ -15,6 +15,6 @@
|
|||
@ stdcall WMCreateWriter(ptr ptr)
|
||||
@ stub WMCreateWriterFileSink
|
||||
@ stub WMCreateWriterNetworkSink
|
||||
@ stub WMCreateWriterPriv
|
||||
@ stdcall WMCreateWriterPriv(ptr)
|
||||
@ stub WMCreateWriterPushSink
|
||||
@ stub WMIsContentProtected
|
||||
|
|
|
@ -369,3 +369,8 @@ HRESULT WINAPI WMCreateWriter(IUnknown *reserved, IWMWriter **writer)
|
|||
*writer = &ret->IWMWriter_iface;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT WINAPI WMCreateWriterPriv(IWMWriter **writer)
|
||||
{
|
||||
return WMCreateWriter(NULL, writer);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue