Skip to content

Commit 76b7f2c

Browse files
committed
Req
1 parent c65fc00 commit 76b7f2c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Files.App.CsWin32/IStorageProviderStatusUI.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ public unsafe struct IStorageProviderStatusUI : IComIID
1414
private void** lpVtbl;
1515

1616
[MethodImpl(MethodImplOptions.AggressiveInlining)]
17-
public HRESULT GetQuotaUI(nint* result)
17+
public HRESULT GetQuotaUI(IStorageProviderQuotaUI** result)
1818
{
19-
return ((delegate* unmanaged[Stdcall]<IStorageProviderStatusUI*, nint*, HRESULT>)lpVtbl[14])((IStorageProviderStatusUI*)Unsafe.AsPointer(ref this), result);
19+
return ((delegate* unmanaged[Stdcall]<IStorageProviderStatusUI*, IStorageProviderQuotaUI**, HRESULT>)lpVtbl[14])((IStorageProviderStatusUI*)Unsafe.AsPointer(ref this), result);
2020
}
2121

2222
public static ref readonly Guid Guid

src/Files.App/Utils/Storage/Helpers/SyncRootHelpers.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private static unsafe (bool Success, ulong Capacity, ulong Used) GetSyncRootQuot
3939
{
4040
hr = pStorageProviderStatusUISourceFactory.Get()->GetStatusUISource(syncRootIdHString.GetAbi(), pStorageProviderStatusUISource.GetAddressOf()).ThrowOnFailure();
4141
hr = pStorageProviderStatusUISource.Get()->GetStatusUI(pStorageProviderStatusUI.GetAddressOf()).ThrowOnFailure();
42-
hr = pStorageProviderStatusUI.Get()->GetQuotaUI((nint*)pStorageProviderQuotaUI.GetAddressOf()).ThrowOnFailure();
42+
hr = pStorageProviderStatusUI.Get()->GetQuotaUI(pStorageProviderQuotaUI.GetAddressOf()).ThrowOnFailure();
4343

4444
hr = pStorageProviderQuotaUI.Get()->GetQuotaTotalInBytes(&ulTotalSize);
4545
hr = pStorageProviderQuotaUI.Get()->GetQuotaUsedInBytes(&ulUsedSize);

0 commit comments

Comments
 (0)