ntdll: Run TLS callbacks in zero-sized TLS directories.

This commit is contained in:
Andrey Turkin 2009-10-10 15:09:02 +04:00 committed by Alexandre Julliard
parent 13ad5d1725
commit 7aeaa0338c
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
} }