diff --git a/src/Files.App.CsWin32/IStorageProviderQuotaUI.cs b/src/Files.App.CsWin32/IStorageProviderQuotaUI.cs index 3e28cfcabded..949a2bc276cb 100644 --- a/src/Files.App.CsWin32/IStorageProviderQuotaUI.cs +++ b/src/Files.App.CsWin32/IStorageProviderQuotaUI.cs @@ -16,13 +16,13 @@ public unsafe struct IStorageProviderQuotaUI : IComIID [MethodImpl(MethodImplOptions.AggressiveInlining)] public HRESULT GetQuotaTotalInBytes(ulong* value) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IStorageProviderQuotaUI*)Unsafe.AsPointer(ref this), value); + return (HRESULT)((delegate* unmanaged[MemberFunction])(lpVtbl[6]))((IStorageProviderQuotaUI*)Unsafe.AsPointer(ref this), value); } [MethodImpl(MethodImplOptions.AggressiveInlining)] public HRESULT GetQuotaUsedInBytes(ulong* value) { - return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IStorageProviderQuotaUI*)Unsafe.AsPointer(ref this), value); + return (HRESULT)((delegate* unmanaged[MemberFunction])(lpVtbl[8]))((IStorageProviderQuotaUI*)Unsafe.AsPointer(ref this), value); } public static ref readonly Guid Guid diff --git a/src/Files.App.CsWin32/IStorageProviderStatusUI.cs b/src/Files.App.CsWin32/IStorageProviderStatusUI.cs index ab7bdcc050d4..5e3b282359e3 100644 --- a/src/Files.App.CsWin32/IStorageProviderStatusUI.cs +++ b/src/Files.App.CsWin32/IStorageProviderStatusUI.cs @@ -16,7 +16,7 @@ public unsafe struct IStorageProviderStatusUI : IComIID [MethodImpl(MethodImplOptions.AggressiveInlining)] public HRESULT GetQuotaUI(IStorageProviderQuotaUI** result) { - return ((delegate* unmanaged[Stdcall])lpVtbl[14])((IStorageProviderStatusUI*)Unsafe.AsPointer(ref this), result); + return (HRESULT)((delegate* unmanaged[MemberFunction])lpVtbl[14])((IStorageProviderStatusUI*)Unsafe.AsPointer(ref this), result); } public static ref readonly Guid Guid diff --git a/src/Files.App.CsWin32/IStorageProviderStatusUISource.cs b/src/Files.App.CsWin32/IStorageProviderStatusUISource.cs index b7d80b4efb8f..273cc237e18a 100644 --- a/src/Files.App.CsWin32/IStorageProviderStatusUISource.cs +++ b/src/Files.App.CsWin32/IStorageProviderStatusUISource.cs @@ -16,7 +16,7 @@ public unsafe struct IStorageProviderStatusUISource : IComIID [MethodImpl(MethodImplOptions.AggressiveInlining)] public HRESULT GetStatusUI(IStorageProviderStatusUI** result) { - return ((delegate* unmanaged[Stdcall])lpVtbl[6])((IStorageProviderStatusUISource*)Unsafe.AsPointer(ref this), result); + return (HRESULT)((delegate* unmanaged[MemberFunction])lpVtbl[6])((IStorageProviderStatusUISource*)Unsafe.AsPointer(ref this), result); } public static ref readonly Guid Guid diff --git a/src/Files.App.CsWin32/IStorageProviderStatusUISourceFactory.cs b/src/Files.App.CsWin32/IStorageProviderStatusUISourceFactory.cs index 4927fa32577e..086ecd11d7a3 100644 --- a/src/Files.App.CsWin32/IStorageProviderStatusUISourceFactory.cs +++ b/src/Files.App.CsWin32/IStorageProviderStatusUISourceFactory.cs @@ -16,7 +16,7 @@ public unsafe struct IStorageProviderStatusUISourceFactory : IComIID [MethodImpl(MethodImplOptions.AggressiveInlining)] public HRESULT GetStatusUISource(nint syncRootId, IStorageProviderStatusUISource** result) { - return ((delegate* unmanaged[Stdcall])lpVtbl[6])((IStorageProviderStatusUISourceFactory*)Unsafe.AsPointer(ref this), syncRootId, result); + return (HRESULT)((delegate* unmanaged[MemberFunction])lpVtbl[6])((IStorageProviderStatusUISourceFactory*)Unsafe.AsPointer(ref this), syncRootId, result); } public static ref readonly Guid Guid