mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-09 00:24:15 +00:00
Fix autosave thread compression TLS crash. (#1544)
This commit is contained in:
@@ -731,6 +731,7 @@ void ConsoleSaveFileOriginal::Flush(bool autosave, bool updateThumbnail )
|
|||||||
s_bgSaveActive.store(true, std::memory_order_release);
|
s_bgSaveActive.store(true, std::memory_order_release);
|
||||||
|
|
||||||
std::thread([snap, fileSize, thumb, thumbSz, meta, metaLen, this]() {
|
std::thread([snap, fileSize, thumb, thumbSz, meta, metaLen, this]() {
|
||||||
|
Compression::UseDefaultThreadStorage();
|
||||||
unsigned int compLen = fileSize + 8;
|
unsigned int compLen = fileSize + 8;
|
||||||
byte *buf = static_cast<byte *>(StorageManager.AllocateSaveData(compLen));
|
byte *buf = static_cast<byte *>(StorageManager.AllocateSaveData(compLen));
|
||||||
if (!buf)
|
if (!buf)
|
||||||
|
|||||||
Reference in New Issue
Block a user