Commit b2e74c30 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

Load all dll sections no matter what attributes say.

parent 132bc714
...@@ -969,8 +969,6 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, DWORD total_size ...@@ -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, ...@@ -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;
......
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