ntdll: Run TLS callbacks in zero-sized TLS directories.
This commit is contained in:
parent
13ad5d1725
commit
7aeaa0338c
|
@ -845,7 +845,7 @@ static NTSTATUS alloc_process_tls(void)
|
||||||
IMAGE_DIRECTORY_ENTRY_TLS, &size )))
|
IMAGE_DIRECTORY_ENTRY_TLS, &size )))
|
||||||
continue;
|
continue;
|
||||||
size = (dir->EndAddressOfRawData - dir->StartAddressOfRawData) + dir->SizeOfZeroFill;
|
size = (dir->EndAddressOfRawData - dir->StartAddressOfRawData) + dir->SizeOfZeroFill;
|
||||||
if (!size) continue;
|
if (!size && !dir->AddressOfCallBacks) continue;
|
||||||
tls_total_size += size;
|
tls_total_size += size;
|
||||||
tls_module_count++;
|
tls_module_count++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue