Commit 0c58f0ed authored by Anton Romanov's avatar Anton Romanov Committed by Alexandre Julliard

wmp: Add IWMPNetwork stub.

parent 9a89db98
......@@ -898,6 +898,7 @@ static void test_wmp_ifaces(IOleObject *oleobj)
IWMPMedia *media;
IWMPControls *controls;
VARIANT_BOOL vbool;
IWMPNetwork *network;
HRESULT hres;
BSTR filename;
BSTR url;
......@@ -917,6 +918,19 @@ static void test_wmp_ifaces(IOleObject *oleobj)
IWMPControls_Release(controls);
/* IWPNetwork */
network = NULL;
hres = IWMPPlayer4_get_network(player4, &network);
ok(hres == S_OK, "get_network failed: %08x\n", hres);
ok(network != NULL, "network = NULL\n");
player = NULL;
hres = IWMPNetwork_QueryInterface(network, &IID_IWMPPlayer, (void**)&player);
ok(hres != S_OK, "Getting IWMPPlayer from IWMPNetwork SUCCEEDED\n");
ok(player == NULL, "player != NULL\n");
IWMPNetwork_Release(network);
media = NULL;
hres = IWMPPlayer4_QueryInterface(player4, &IID_IWMPMedia, (void**)&media);
ok(hres == E_NOINTERFACE, "get_currentMedia SUCCEEDED: %08x\n", hres);
......
......@@ -54,6 +54,7 @@ struct WindowsMediaPlayer {
IWMPPlayer IWMPPlayer_iface;
IWMPSettings IWMPSettings_iface;
IWMPControls IWMPControls_iface;
IWMPNetwork IWMPNetwork_iface;
LONG ref;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment