mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-07-17 19:40:45 +00:00
fix: add null check for TLS compression pointer
This commit is contained in:
@@ -51,6 +51,9 @@ void Compression::ReleaseThreadStorage()
|
||||
Compression *Compression::getCompression()
|
||||
{
|
||||
const ThreadStorage *tls = static_cast<ThreadStorage *>(TlsGetValue(tlsIdx));
|
||||
if (!tls) {
|
||||
return nullptr;
|
||||
}
|
||||
return tls->compression;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user