Load all dll sections no matter what attributes say.

oldstable
Vitaliy Margolen 2005-07-02 10:50:42 +00:00 committed by Alexandre Julliard
parent 132bc714fb
commit b2e74c3047
2 changed files with 0 additions and 4 deletions

View File

@ -969,8 +969,6 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, DWORD total_size
sec->PointerToRawData, sec->SizeOfRawData,
sec->Characteristics );
if ((sec->Characteristics & IMAGE_SCN_CNT_UNINITIALIZED_DATA) &&
!(sec->Characteristics & IMAGE_SCN_CNT_INITIALIZED_DATA)) continue;
if (!sec->PointerToRawData || !sec->SizeOfRawData) continue;
/* Note: if the section is not aligned properly map_file_into_view will magically

View File

@ -161,8 +161,6 @@ static int build_shared_mapping( struct mapping *mapping, int fd,
if (!(sec[i].Characteristics & IMAGE_SCN_MEM_WRITE)) continue;
write_pos = shared_pos;
shared_pos += ROUND_SIZE( sec[i].Misc.VirtualSize );
if ((sec[i].Characteristics & IMAGE_SCN_CNT_UNINITIALIZED_DATA) &&
!(sec[i].Characteristics & IMAGE_SCN_CNT_INITIALIZED_DATA)) continue;
if (!sec[i].PointerToRawData || !sec[i].SizeOfRawData) continue;
read_pos = sec[i].PointerToRawData;
toread = sec[i].SizeOfRawData;