# CVE-2026-97013 — windows.storage.dll patch diff

`windows.storage.dll` 10.0.26100.9711 -> 10.0.26100.9974 (ghidriff).

## `Microsoft::WRL::Details::MakeAllocator<Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<Windows::Storage::StorageFile*___ptr64>,Windows::Foundation::IAsyncOperationCompletedHandler<Windows::Storage::StorageFile*___ptr64>,CStorageItemResult<Windows::Storage::IStorageFile>,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&struct__GUID_const_GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2>_>_>::~MakeAllocator<Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<Windows::Storage::StorageFile*___ptr64>,Windows::Foundation::IAsyncOperationCompletedHandler<Windows::Storage::StorageFile*___ptr64>,CStorageItemResult<Windows::Storage::IStorageFile>,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&struct__GUID_const_GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2>_>_>`  (modified)

```diff
--- Microsoft::WRL::Details::MakeAllocator<Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<Windows::Storage::StorageFile*___ptr64>,Windows::Foundation::IAsyncOperationCompletedHandler<Windows::Storage::StorageFile*___ptr64>,CStorageItemResult<Windows::Storage::IStorageFile>,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&struct__GUID_const_GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2>_>_>::~MakeAllocator<Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<Windows::Storage::StorageFile*___ptr64>,Windows::Foundation::IAsyncOperationCompletedHandler<Windows::Storage::StorageFile*___ptr64>,CStorageItemResult<Windows::Storage::IStorageFile>,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&struct__GUID_const_GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2>_>_>
+++ Microsoft::WRL::Details::MakeAllocator<Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<Windows::Storage::StorageFile*___ptr64>,Windows::Foundation::IAsyncOperationCompletedHandler<Windows::Storage::StorageFile*___ptr64>,CStorageItemResult<Windows::Storage::IStorageFile>,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&struct__GUID_const_GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2>_>_>::~MakeAllocator<Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<Windows::Storage::StorageFile*___ptr64>,Windows::Foundation::IAsyncOperationCompletedHandler<Windows::Storage::StorageFile*___ptr64>,CStorageItemResult<Windows::Storage::IStorageFile>,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&struct__GUID_const_GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2>_>_>
@@ -1,2 +1,32 @@
-Failed to decompile windows.storage.dll - .ProgramDB Microsoft::WRL::Details::MakeAllocator<Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<Windows::Storage::StorageFile*___ptr64>,Windows::Foundation::IAsyncOperationCompletedHandler<Windows::Storage::StorageFile*___ptr64>,CStorageItemResult<Windows::Storage::IStorageFile>,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&struct__GUID_const_GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2>_>_>::~MakeAllocator<Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<Windows::Storage::StorageFile*___ptr64>,Windows::Foundation::IAsyncOperationCompletedHandler<Windows::Storage::StorageFile*___ptr64>,CStorageItemResult<Windows::Storage::IStorageFile>,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&struct__GUID_const_GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2>_>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: __cdecl Microsoft::WRL::Details::MakeAllocator<class

+   Windows::Internal::AsyncOperation<struct Windows::Foundation::IAsyncOperation<class

+   Windows::Storage::StorageFile * __ptr64>,struct

+   Windows::Foundation::IAsyncOperationCompletedHandler<class Windows::Storage::StorageFile *

+   __ptr64>,class CStorageItemResult<struct Windows::Storage::IStorageFile>,class

+   Windows::Internal::ComTaskPoolHandler,struct Windows::Internal::INilDelegate,struct

+   Microsoft::WRL::AsyncOptions<-1,0,&struct _GUID const GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2> >

+   >::~MakeAllocator<class Windows::Internal::AsyncOperation<struct

+   Windows::Foundation::IAsyncOperation<class Windows::Storage::StorageFile * __ptr64>,struct

+   Windows::Foundation::IAsyncOperationCompletedHandler<class Windows::Storage::StorageFile *

+   __ptr64>,class CStorageItemResult<struct Windows::Storage::IStorageFile>,class

+   Windows::Internal::ComTaskPoolHandler,struct Windows::Internal::INilDelegate,struct

+   Microsoft::WRL::AsyncOptions<-1,0,&struct _GUID const GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2> >

+   >(void) __ptr64 */

+

+void __thiscall

+Microsoft::WRL::Details::

+MakeAllocator<Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<Windows::Storage::StorageFile*___ptr64>,Windows::Foundation::IAsyncOperationCompletedHandler<Windows::Storage::StorageFile*___ptr64>,CStorageItemResult<Windows::Storage::IStorageFile>,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<-1,0,&struct__GUID_const_GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2>_>_>

+::

+~MakeAllocator<Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<Windows::Storage::StorageFile*___ptr64>,Windows::Foundation::IAsyncOperationCompletedHandler<Windows::Storage::StorageFile*___ptr64>,CStorageItemResult<Windows::Storage::IStorageFile>,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<_1,0,&struct__GUID_const_GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2>_>_>

+          (MakeAllocator<Windows::Internal::AsyncOperation<Windows::Foundation::IAsyncOperation<Windows::Storage::StorageFile*___ptr64>,Windows::Foundation::IAsyncOperationCompletedHandler<Windows::Storage::StorageFile*___ptr64>,CStorageItemResult<Windows::Storage::IStorageFile>,Windows::Internal::ComTaskPoolHandler,Windows::Internal::INilDelegate,Microsoft::WRL::AsyncOptions<_1,0,&struct__GUID_const_GUID_CAUSALITY_WINDOWS_PLATFORM_ID,2>_>_>

+           *this)

+

+{

+  if (*(void **)this == (void *)0x0) {

+    return;

+  }

+  operator_delete(*(void **)this,1);

+  return;

+}

+
```

## `std::_Func_impl_no_alloc<<lambda_bf551145f1a84f23338bd01e9bb5de98>,void,_GUID_const_&,unsigned_long>::_Delete_this`  (modified)

```diff
--- std::_Func_impl_no_alloc<<lambda_bf551145f1a84f23338bd01e9bb5de98>,void,_GUID_const_&,unsigned_long>::_Delete_this
+++ std::_Func_impl_no_alloc<<lambda_bf551145f1a84f23338bd01e9bb5de98>,void,_GUID_const_&,unsigned_long>::_Delete_this
@@ -1,20 +1,13 @@
 

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

-

-bool `kfapi::CFolderPathResolver::GetPath'::__l1::dtor$3::_Delete_this(longlong param_1)

+void std::

+     _Func_impl_no_alloc<<lambda_bf551145f1a84f23338bd01e9bb5de98>,void,_GUID_const_&,unsigned_long>

+     ::_Delete_this(void *param_1,char param_2)

 

 {

-  long lVar1;

-  void *pvStackX_20;

-  

-  pvStackX_20 = (void *)0x0;

-  Microsoft::WRL::ComPtr<IPropertyStoreFactory>::InternalRelease

-            ((ComPtr<IPropertyStoreFactory> *)&pvStackX_20);

-  lVar1 = CFTMCrossProcClientImpl::_GetRemoteIdentity

-                    ((CFTMCrossProcClientImpl *)(param_1 + 8),

-                     (_GUID *)&_GUID_00000000_0000_0000_c000_000000000046,&pvStackX_20);

-  Microsoft::WRL::ComPtr<IPropertyStoreFactory>::InternalRelease

-            ((ComPtr<IPropertyStoreFactory> *)&pvStackX_20);

-  return -1 < lVar1;

+  if (param_2 == '\0') {

+    return;

+  }

+  operator_delete(param_1,0x18);

+  return;

 }
```

## `CFSTransfer::_PerformCopyFileWithRetry`  (modified)

```diff
--- CFSTransfer::_PerformCopyFileWithRetry
+++ CFSTransfer::_PerformCopyFileWithRetry
@@ -1,2 +1,115 @@
-Failed to decompile windows.storage.dll - .ProgramDB CFSTransfer::_PerformCopyFileWithRetry : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_xfg_dispatch_icall_nop replaced with injection: guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: long __cdecl CFSTransfer::_PerformCopyFileWithRetry(unsigned long) __ptr64 */

+

+long __thiscall CFSTransfer::_PerformCopyFileWithRetry(CFSTransfer *this,ulong param_1)

+

+{

+  bool bVar1;

+  bool bVar2;

+  bool bVar3;

+  long lVar4;

+  int iVar5;

+  int iVar6;

+  CFSTransfer *this_00;

+  undefined1 auStack_88 [40];

+  undefined4 local_60;

+  ulong local_5c;

+  undefined8 local_58;

+  code *local_50;

+  CFSTransfer *local_48;

+  ulonglong local_40;

+  

+  local_40 = __security_cookie ^ (ulonglong)auStack_88;

+  lVar4 = 0x270004;

+  this_00 = this;

+  do {

+    bVar3 = false;

+    iVar5 = lVar4;

+    bVar1 = bVar3;

+    while( true ) {

+      do {

+        if ((iVar5 != 0x270004) && (!bVar3)) {

+          bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_128102717>::

+                  __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_128102717> *)

+                                      &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_128102717>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_128102717>::GetImpl(void)'

+                                       ::__l2::impl);

+          if ((bVar3) && (-1 < iVar5)) {

+            iVar6 = Ordinal_190(&POLID_DisableMotWOnInsecurePathCopy);

+            if (iVar6 == 0) {

+              _StampMotWOnDestFileIfNeeded(this);

+            }

+          }

+          return iVar5;

+        }

+        iVar5 = *(int *)(this + 0x334);

+      } while (*(int *)(this + 0x334) < 0);

+      local_60 = 0x20;

+      local_50 = s_CopyProgressCallback;

+      local_58 = 0;

+      local_48 = this;

+      local_5c = _GetCopyFileFlagsFromTransferSourceFlags(this_00,param_1);

+      if (bVar3) {

+        local_5c = local_5c | 0x4000;

+      }

+      this_00 = *(CFSTransfer **)(this + 0xd8);

+      lVar4 = CopyFile2(this_00,*(undefined8 *)(this + 0x110),&local_60);

+      if (lVar4 < 0) {

+        this_00 = this;

+        lVar4 = _ShouldRetryCopy(this,lVar4,param_1);

+        if (-1 < lVar4) {

+          this_00 = *(CFSTransfer **)(this + 0xd8);

+          lVar4 = CopyFile2(this_00,*(undefined8 *)(this + 0x110),&local_60);

+        }

+      }

+      bVar3 = false;

+      if ((bVar1) && (-1 < lVar4)) break;

+      if (lVar4 == -0x7ff8fb2d) {

+        iVar5 = *(int *)(this + 0x60);

+      }

+      else if (lVar4 == -0x7ff8f416) {

+        if (*(longlong *)(this + 0x50) == 0) {

+          MicrosoftTelemetryAssertTriggeredNoArgs();

+        }

+        _ReleaseFileHandles(this);

+        this_00 = *(CFSTransfer **)(this + 0x50);

+        iVar5 = (**(code **)(*(longlong *)this_00 + 0x18))();

+        if (iVar5 == -0x7ff8fb39) {

+          this_00 = *(CFSTransfer **)(this + 0x110);

+          DeleteFileWithRetry((ushort *)this_00);

+        }

+        else {

+          bVar3 = true;

+          bVar1 = true;

+        }

+      }

+      else {

+        iVar5 = lVar4;

+        if (lVar4 < 0) {

+          if (lVar4 == -0x7ff8e890) {

+            bVar1 = true;

+LAB_0:

+            bVar2 = DeleteFileWithRetry(*(ushort **)(this + 0x110));

+            if (bVar2) {

+              bVar1 = false;

+            }

+          }

+          else if ((bVar1) && (lVar4 != -0x7ff8ff49)) goto LAB_0;

+          if ((*(int *)(this + 0x80) - 1U & 0xfffffffd) == 0) {

+            this_00 = this;

+            iVar5 = _HandleBaseApiErrorsSrc(this,lVar4,param_1,(IShellItem *)0x0);

+          }

+          else {

+            this_00 = this;

+            iVar5 = _HandleBaseApiErrorsDest(this,lVar4,param_1);

+          }

+          if (iVar5 == 0x270003) {

+            iVar5 = lVar4;

+          }

+        }

+      }

+    }

+  } while( true );

+}

+
```

## `SHCORE.DLL::Ordinal_190`  (modified)

```diff
--- SHCORE.DLL::Ordinal_190 calling
+++ SHCORE.DLL::Ordinal_190 calling
@@ -16,0 +17,2 @@
+CFSTransfer::CFSTransfer
+CFSTransfer::_PerformCopyFileWithRetry
```

## `API-MS-WIN-CORE-COM-L1-1-0.DLL::CoCreateInstance`  (modified)

```diff
--- API-MS-WIN-CORE-COM-L1-1-0.DLL::CoCreateInstance calling
+++ API-MS-WIN-CORE-COM-L1-1-0.DLL::CoCreateInstance calling
@@ -70,0 +71,2 @@
+CFSTransfer::_GetUrlPolicyInformation
+CFSTransfer::_InitializeZoneIdentifierInterfaces
@@ -184,2 +186,2 @@
-FUN_180115699
-FUN_180122503
+FUN_180115759
+FUN_1801225c3
```
