Sebastian Lackner : ntdll: Don' t fail in NtUnmapViewOfSection when trying to unmap builtin view.
Alexandre Julliard
julliard at winehq.org
Fri Feb 23 15:10:23 CST 2018
Module: wine
Branch: master
Commit: 5c2523c6f3bd114157b5a3ae0a9fd368837c0747
URL: https://source.winehq.org/git/wine.git/?a=commit;h=5c2523c6f3bd114157b5a3ae0a9fd368837c0747
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Fri Feb 23 09:22:19 2018 +0000
ntdll: Don't fail in NtUnmapViewOfSection when trying to unmap builtin view.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 d26be98..106dab2 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;
More information about the wine-cvs
mailing list