2017-10-09 14:37:12 -07:00
|
|
|
From 44d6e7a718e083aba1127ec6927bc6171f5672d8 Mon Sep 17 00:00:00 2001
|
2017-10-09 05:20:51 -07:00
|
|
|
From: Sebastian Lackner <sebastian@fds-team.de>
|
|
|
|
Date: Mon, 9 Oct 2017 14:18:30 +0200
|
|
|
|
Subject: ntdll: Don't fail in NtUnmapViewOfSection when trying to unmap
|
|
|
|
builtin view.
|
|
|
|
|
|
|
|
Fixes a regression introduced in a557934c76c0e0bed6b73e5c8f79a0df059ff2de.
|
|
|
|
---
|
2017-10-09 14:37:12 -07:00
|
|
|
dlls/ntdll/virtual.c | 6 +++++-
|
|
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
2017-10-09 05:20:51 -07:00
|
|
|
|
|
|
|
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
|
2017-10-09 14:37:12 -07:00
|
|
|
index d28b138e575..70137ec79a4 100644
|
2017-10-09 05:20:51 -07:00
|
|
|
--- a/dlls/ntdll/virtual.c
|
|
|
|
+++ b/dlls/ntdll/virtual.c
|
2017-10-09 14:37:12 -07:00
|
|
|
@@ -3085,7 +3085,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
|
|
|
|
+ {
|
2017-10-09 05:20:51 -07:00
|
|
|
+ delete_view( view );
|
|
|
|
+ status = STATUS_SUCCESS;
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
server_leave_uninterrupted_section( &csVirtual, &sigset );
|
|
|
|
return status;
|
|
|
|
--
|
|
|
|
2.14.1
|
|
|
|
|