mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 20:25:38 +00:00
Fixed section mapping in PE loading when both
IMAGE_SCN_CNT_UNINITIALIZED_DATA and IMAGE_SCN_CNT_INITIALIZED_DATA are set.
This commit is contained in:
parent
e5aabc6eeb
commit
415dfa63e5
|
@ -658,7 +658,8 @@ 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) continue;
|
||||
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 VIRTUAL_mmap will magically
|
||||
|
|
Loading…
Reference in a new issue