Load all dll sections no matter what attributes say.
This commit is contained in:
parent
132bc714fb
commit
b2e74c3047
|
@ -969,8 +969,6 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, DWORD total_size
|
||||||
sec->PointerToRawData, sec->SizeOfRawData,
|
sec->PointerToRawData, sec->SizeOfRawData,
|
||||||
sec->Characteristics );
|
sec->Characteristics );
|
||||||
|
|
||||||
if ((sec->Characteristics & IMAGE_SCN_CNT_UNINITIALIZED_DATA) &&
|
|
||||||
!(sec->Characteristics & IMAGE_SCN_CNT_INITIALIZED_DATA)) continue;
|
|
||||||
if (!sec->PointerToRawData || !sec->SizeOfRawData) continue;
|
if (!sec->PointerToRawData || !sec->SizeOfRawData) continue;
|
||||||
|
|
||||||
/* Note: if the section is not aligned properly map_file_into_view will magically
|
/* Note: if the section is not aligned properly map_file_into_view will magically
|
||||||
|
|
|
@ -161,8 +161,6 @@ static int build_shared_mapping( struct mapping *mapping, int fd,
|
||||||
if (!(sec[i].Characteristics & IMAGE_SCN_MEM_WRITE)) continue;
|
if (!(sec[i].Characteristics & IMAGE_SCN_MEM_WRITE)) continue;
|
||||||
write_pos = shared_pos;
|
write_pos = shared_pos;
|
||||||
shared_pos += ROUND_SIZE( sec[i].Misc.VirtualSize );
|
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;
|
if (!sec[i].PointerToRawData || !sec[i].SizeOfRawData) continue;
|
||||||
read_pos = sec[i].PointerToRawData;
|
read_pos = sec[i].PointerToRawData;
|
||||||
toread = sec[i].SizeOfRawData;
|
toread = sec[i].SizeOfRawData;
|
||||||
|
|
Loading…
Reference in New Issue