From 8bb41e6fcadbc11c3d71ea53033b898ccaf4e140 Mon Sep 17 00:00:00 2001 From: David Hall Date: Mon, 24 Jun 2024 13:10:25 -0600 Subject: [PATCH] Updated nullability of ShlwApi IUnknown_xx method parameters --- PInvoke/ShlwApi/Shlwapi.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PInvoke/ShlwApi/Shlwapi.cs b/PInvoke/ShlwApi/Shlwapi.cs index 549cf3c08..e5de29d7a 100644 --- a/PInvoke/ShlwApi/Shlwapi.cs +++ b/PInvoke/ShlwApi/Shlwapi.cs @@ -1827,7 +1827,7 @@ public static extern HRESULT ConnectToConnectionPoint([In, Optional, MarshalAs(U // *punk, REFIID riid, void **ppv ); [DllImport(Lib.Shlwapi, SetLastError = false, ExactSpelling = true)] [PInvokeData("shlwapi.h", MSDNShortId = "95e83078-ab74-40d6-8e31-653e578770f2")] - public static extern HRESULT IUnknown_GetSite([MarshalAs(UnmanagedType.IUnknown)] object punk, in Guid riid, [MarshalAs(UnmanagedType.IUnknown, IidParameterIndex = 1)] out object ppv); + public static extern HRESULT IUnknown_GetSite([MarshalAs(UnmanagedType.IUnknown)] object punk, in Guid riid, [MarshalAs(UnmanagedType.IUnknown, IidParameterIndex = 1)] out object? ppv); /// /// @@ -2020,7 +2020,7 @@ public static extern HRESULT IUnknown_QueryService([MarshalAs(UnmanagedType.IUnk // *punk, IUnknown *punkSite ); [DllImport(Lib.Shlwapi, SetLastError = false, ExactSpelling = true)] [PInvokeData("shlwapi.h", MSDNShortId = "66175435-f85b-4e26-b148-f4edb74cb41d")] - public static extern HRESULT IUnknown_SetSite([In, MarshalAs(UnmanagedType.IUnknown)] object punk, [In, MarshalAs(UnmanagedType.IUnknown)] object punkSite); + public static extern HRESULT IUnknown_SetSite([In, MarshalAs(UnmanagedType.IUnknown)] object punk, [In, MarshalAs(UnmanagedType.IUnknown)] object? punkSite); /// /// [This function is not available for use as of Windows 7.]