ntdll: Explicitly check for failure to map page 0.

This commit is contained in:
Alexandre Julliard 2010-11-04 17:47:46 +01:00
parent 3fa03e1c78
commit 3aa6e3bd89
1 changed files with 6 additions and 2 deletions

View File

@ -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
{