Skip to content

Commit 045350e

Browse files
committed
Req
1 parent 7179491 commit 045350e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Files.App.CsWin32/ManualGuid.cs

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ public static unsafe partial class IID
3333

3434
[GuidRVAGen.Guid("2E941141-7F97-4756-BA1D-9DECDE894A3D")]
3535
public static partial Guid* IID_IApplicationActivationManager { get; }
36+
37+
[GuidRVAGen.Guid("12E46B74-4E5A-58D1-A62F-0376E8EE7DD8")]
38+
public static partial Guid* IID_IStorageProviderStatusUISourceFactory { get; }
3639
}
3740

3841
public static unsafe partial class CLSID

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ private static unsafe (bool Success, ulong Capacity, ulong Used) GetSyncRootQuot
2020
!Guid.TryParse(factoryClsidString, out var factoryClsid))
2121
return (false, 0, 0);
2222

23-
HRESULT hr = default;
2423
ulong ulTotalSize = 0ul, ulUsedSize = 0ul;
2524
using ComPtr<IStorageProviderStatusUISourceFactory> pStorageProviderStatusUISourceFactory = default;
2625
using ComPtr<IStorageProviderStatusUISource> pStorageProviderStatusUISource = default;
@@ -31,7 +30,7 @@ private static unsafe (bool Success, ulong Capacity, ulong Used) GetSyncRootQuot
3130
&factoryClsid,
3231
null,
3332
CLSCTX.CLSCTX_LOCAL_SERVER,
34-
(Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IStorageProviderStatusUISourceFactory.Guid)),
33+
IID.IID_IStorageProviderStatusUISourceFactory,
3534
(void**)pStorageProviderStatusUISourceFactory.GetAddressOf()).ThrowIfFailedOnDebug().Failed)
3635
return (false, 0, 0);
3736

0 commit comments

Comments
 (0)