diff options
-rw-r--r-- | winsup/cygwin/fhandler_socket_unix.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_socket_unix.cc b/winsup/cygwin/fhandler_socket_unix.cc index 824bcba..760f210 100644 --- a/winsup/cygwin/fhandler_socket_unix.cc +++ b/winsup/cygwin/fhandler_socket_unix.cc @@ -1436,10 +1436,10 @@ fhandler_socket_unix::socketpair (int af, int type, int protocol, int flags, fh_open_pipe_failed: NtClose (pipe); create_pipe_failed: - NtUnmapViewOfSection (GetCurrentProcess (), fh->shmem); + NtUnmapViewOfSection (NtCurrentProcess (), fh->shmem); NtClose (fh->shmem_handle); fh_shmem_failed: - NtUnmapViewOfSection (GetCurrentProcess (), shmem); + NtUnmapViewOfSection (NtCurrentProcess (), shmem); NtClose (shmem_handle); return -1; } @@ -1814,7 +1814,7 @@ fhandler_socket_unix::close () NtClose (shm); param = InterlockedExchangePointer ((PVOID *) &shmem, NULL); if (param) - NtUnmapViewOfSection (GetCurrentProcess (), param); + NtUnmapViewOfSection (NtCurrentProcess (), param); return 0; } |