Play Windows games on Apple Silicon Macs. Free, open-source app that installs the official Battle.net, Steam, Epic and GOG launchers and lists your games in one library.
HTML apple-siliconbattle-netcrossover-alternatived3dmetaldiablo-ii-resurrecteddxmtea-appepic-gamesgame-porting-toolkitgogmac-gamingmacosmacos-gamingrockstar-gamessteamubisoft-connectwhisky-alternativewindows-gameswinewine-wrapper
From d5c7ea9089e2d90c3842a2e67b7961fa664b9e31 Mon Sep 17 00:00:00 2001
From: Piotr Caban <[email protected]>
Date: Thu, 30 Apr 2026 18:45:09 +0200
Subject: [PATCH] msvcp120: Don't count segments being allocated when reporting
vector capacity.
---
dlls/msvcp90/details.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcp90/details.c b/dlls/msvcp90/details.c
index d6b72fcd3f1f..a625266e2554 100644
--- a/dlls/msvcp90/details.c
+++ b/dlls/msvcp90/details.c
@@ -541,7 +541,7 @@ size_t __thiscall _Concurrent_vector_base_v4__Internal_capacity(
last_block = (this->segment == this->storage ? STORAGE_SIZE : SEGMENT_SIZE);
for(i = 0; i < last_block; i++)
{
- if(!this->segment[i])
+ if(!this->segment[i] || this->segment[i] == SEGMENT_ALLOC_MARKER)
return !i ? 0 : 1 << i;
}
return 1 << i;