mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
ntdll: Explicitly check for failure to map page 0.
This commit is contained in:
parent
3fa03e1c78
commit
3aa6e3bd89
1 changed files with 6 additions and 2 deletions
|
@ -993,8 +993,12 @@ static NTSTATUS allocate_dos_memory( struct file_view **view, unsigned int vprot
|
|||
addr = wine_anon_mmap( (void *)page_size, 0x10000 - page_size, unix_prot, 0 );
|
||||
if (addr == (void *)page_size)
|
||||
{
|
||||
addr = NULL;
|
||||
TRACE( "successfully mapped low 64K range\n" );
|
||||
if (!wine_anon_mmap( NULL, page_size, unix_prot, MAP_FIXED ))
|
||||
{
|
||||
addr = NULL;
|
||||
TRACE( "successfully mapped low 64K range\n" );
|
||||
}
|
||||
else TRACE( "failed to map page 0\n" );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue