[PATCH 2/2] includes: Sync an attribute to the Windows 8.1 SDK.

Stefan Dösinger stefan at codeweavers.com
Tue May 20 06:09:17 CDT 2014

Unmodified resend of 104658, but with additional remarks:

The attributes set by this patch are the same as used in the Windows 8.1
SDK ShObjIdl.idl file. The same file in the Windows 8.0 SDK does not
have this attribute. Without this attribute, compiling the .idl fails
with midl version 8.00.0603 (Visual Studio 2013) with the following

error MIDL2121: [out] only parameter must not derive from a top-level
[unique] or [ptr] pointer/array : [ Type 'LPWSTR' ( Parameter 'rename' ) ]
 include/shobjidl.idl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/shobjidl.idl b/include/shobjidl.idl
index c9297a8..ae42c2e 100644
--- a/include/shobjidl.idl
+++ b/include/shobjidl.idl
@@ -3350,7 +3350,7 @@ interface ITransferAdviseSink : IUnknown
     HRESULT FileFailure([in] IShellItem *item,
                         [in, unique, string] LPCWSTR itemname,
                         [in] HRESULT hr,
-                        [out, unique, size_is(crename)] LPWSTR rename,
+                        [in, out, unique, size_is(crename)] LPWSTR rename,
                         [in] ULONG crename);
     HRESULT SubStreamFailure([in] IShellItem *item,
                              [in, string] LPCWSTR stream,

More information about the wine-patches mailing list