Commit 7aeaa033 authored by Andrey Turkin's avatar Andrey Turkin Committed by Alexandre Julliard

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

parent 13ad5d17
......@@ -845,7 +845,7 @@ static NTSTATUS alloc_process_tls(void)
IMAGE_DIRECTORY_ENTRY_TLS, &size )))
continue;
size = (dir->EndAddressOfRawData - dir->StartAddressOfRawData) + dir->SizeOfZeroFill;
if (!size) continue;
if (!size && !dir->AddressOfCallBacks) continue;
tls_total_size += size;
tls_module_count++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment