Alistair Leslie-Hughes : wmvcore: IWMProfile3 GetStreamCount return zero streams.

Alexandre Julliard julliard at winehq.org
Mon Oct 21 15:28:37 CDT 2019


Module: wine
Branch: master
Commit: 877f8aa32ce29b7a8c41f16815c4639408698078
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=877f8aa32ce29b7a8c41f16815c4639408698078

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Sat Oct 19 09:50:03 2019 +0000

wmvcore: IWMProfile3 GetStreamCount return zero streams.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wmvcore/reader.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dlls/wmvcore/reader.c b/dlls/wmvcore/reader.c
index 6945f10a65..68e35cfd48 100644
--- a/dlls/wmvcore/reader.c
+++ b/dlls/wmvcore/reader.c
@@ -1756,7 +1756,12 @@ static HRESULT WINAPI profile3_GetStreamCount(IWMProfile3 *iface, DWORD *count)
 {
     WMReader *This = impl_from_IWMProfile3(iface);
     FIXME("%p, %p\n", This, count);
-    return E_NOTIMPL;
+
+    if (!count)
+        return E_INVALIDARG;
+
+    *count = 0;
+    return S_OK;
 }
 
 static HRESULT WINAPI profile3_GetStream(IWMProfile3 *iface, DWORD index, IWMStreamConfig **config)




More information about the wine-cvs mailing list