[PATCH] wmp/tests: Stop crash when setting a media option.
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Tue Mar 27 16:14:07 CDT 2018
Fixes a regression of 9a89db9897eec5b3e0e7e6e5e33f7261f503f765
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/wmp/tests/oleobj.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/wmp/tests/oleobj.c b/dlls/wmp/tests/oleobj.c
index e4c2294436..58ba6081b1 100644
--- a/dlls/wmp/tests/oleobj.c
+++ b/dlls/wmp/tests/oleobj.c
@@ -970,10 +970,13 @@ static void test_wmp_ifaces(IOleObject *oleobj)
ok(0 == lstrcmpW(url, filename), "%s != %s\n", wine_dbgstr_w(url), wine_dbgstr_w(filename));
SysFreeString(url);
+ /* Keep a reference since we are using the same media object, stops a crash (w2003std, wvistau64) */
+ IWMPMedia_AddRef(media);
SET_EXPECT(GetContainer);
hres = IWMPPlayer4_put_currentMedia(player4, media);
ok(hres == S_OK, "put_currentMedia failed: %08x\n", hres);
todo_wine CHECK_CALLED_OR_BROKEN(GetContainer);
+ IWMPMedia_Release(media);
IWMPMedia_Release(media);
--
2.16.2
More information about the wine-devel
mailing list