[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-cvs
Subject: Sebastian Lackner : ntdll: Use close_handle instead of NtClose for internal memory management functi
From: Alexandre Julliard <julliard () wine ! codeweavers ! com>
Date: 2016-03-31 16:42:56
Message-ID: E1alfgO-00011d-BS () wine ! codeweavers ! com
[Download RAW message or body]
Module: wine
Branch: master
Commit: a697e9682324f14f2ef0db4db75bc0213ccddcdf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a697e9682324f14f2ef0db4db75bc0213ccddcdf
Author: Sebastian Lackner <sebastian@fds-team.de>
Date: Thu Mar 31 06:15:30 2016 +0200
ntdll: Use close_handle instead of NtClose for internal memory management functions.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
---
dlls/ntdll/virtual.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index c57524a..5c43d26 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1279,7 +1279,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
error:
if (view) delete_view( view );
server_leave_uninterrupted_section( &csVirtual, &sigset );
- if (dup_mapping) NtClose( dup_mapping );
+ if (dup_mapping) close_handle( dup_mapping );
return status;
}
@@ -2640,7 +2640,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
res = map_image( handle, unix_handle, base, size, mask, header_size,
shared_fd, dup_mapping, map_vprot, addr_ptr );
if (shared_needs_close) close( shared_fd );
- NtClose( shared_file );
+ close_handle( shared_file );
}
else
{
@@ -2708,7 +2708,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
server_leave_uninterrupted_section( &csVirtual, &sigset );
done:
- if (dup_mapping) NtClose( dup_mapping );
+ if (dup_mapping) close_handle( dup_mapping );
if (needs_close) close( unix_handle );
return res;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic