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

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Fri Feb 23 03:22:19 CST 2018


From: Sebastian Lackner <sebastian at fds-team.de>

Fixes a regression introduced in a557934c76c0e0bed6b73e5c8f79a0df059ff2de.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
 dlls/ntdll/virtual.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index d26be98bb5..106dab26d4 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -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;
-- 
2.16.1




More information about the wine-devel mailing list