ntdll: Don't fail in NtUnmapViewOfSection when trying to unmap builtin view.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2018-02-23 09:22:19 +00:00 committed by Alexandre Julliard
parent d63caf2b76
commit 5c2523c6f3
1 changed files with 5 additions and 1 deletions

View File

@ -3164,7 +3164,11 @@ NTSTATUS WINAPI NtUnmapViewOfSection( HANDLE process, PVOID addr )
if (!status) delete_view( view );
else FIXME( "failed to unmap %p %x\n", view->base, status );
}
else delete_view( view );
else
{
delete_view( view );
status = STATUS_SUCCESS;
}
}
server_leave_uninterrupted_section( &csVirtual, &sigset );
return status;