From 474c588249ce75b87bfa3d2a25a5f681d53bb8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Wed, 9 Mar 2022 09:47:59 +0100 Subject: [PATCH] include: Fix IIterator declaration and missing IVector(View) requires. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi Bernon Signed-off-by: Alexandre Julliard --- include/windows.foundation.collections.idl | 4 +++- include/windows.foundation.idl | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/windows.foundation.collections.idl b/include/windows.foundation.collections.idl index ed1f5e30793..5ed60ed176e 100644 --- a/include/windows.foundation.collections.idl +++ b/include/windows.foundation.collections.idl @@ -93,7 +93,7 @@ cpp_quote("#endif") [propget] HRESULT Current([out, retval] T *value); [propget] HRESULT HasCurrent([out, retval] BOOL *value); HRESULT MoveNext([out, retval] BOOL *value); - HRESULT GetMany([in] UINT32 count, [in] UINT32 items_size, [out] T *items, [out, retval] UINT32 *value); + HRESULT GetMany([in] UINT32 items_size, [out] T *items, [out, retval] UINT32 *value); } [ @@ -134,6 +134,7 @@ cpp_quote("#endif") uuid(bbe1fa4c-b0e3-4583-baef-1f1b2e483e56) ] interface IVectorView : IInspectable + requires Windows.Foundation.Collections.IIterable { HRESULT GetAt([in] UINT32 index, [out, retval] T *value); [propget] HRESULT Size([out, retval] UINT32 *value); @@ -146,6 +147,7 @@ cpp_quote("#endif") uuid(913337e9-11a1-4345-a3a2-4e7f956e222d) ] interface IVector : IInspectable + requires Windows.Foundation.Collections.IIterable { HRESULT GetAt([in, optional] UINT32 index, [out, retval] T *value); [propget] HRESULT Size([out, retval] UINT32 *value); diff --git a/include/windows.foundation.idl b/include/windows.foundation.idl index a92a5d82424..e0fd35e45eb 100644 --- a/include/windows.foundation.idl +++ b/include/windows.foundation.idl @@ -159,7 +159,9 @@ namespace Windows { namespace Foundation { declare { interface Windows.Foundation.Collections.IIterable; + interface Windows.Foundation.Collections.IIterable; interface Windows.Foundation.Collections.IIterator; + interface Windows.Foundation.Collections.IIterator; interface Windows.Foundation.Collections.IVectorView; interface Windows.Foundation.Collections.IVectorView; interface Windows.Foundation.Collections.IVector;