public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: AF_UNIX: use Nt functions within Nt functions
@ 2020-02-28 11:43 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-02-28 11:43 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=f5357141ade956d8057e76b0a5e58f5069a6d399
commit f5357141ade956d8057e76b0a5e58f5069a6d399
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Fri Feb 28 12:40:49 2020 +0100
Cygwin: AF_UNIX: use Nt functions within Nt functions
Functionaly equivalent, but makes for cleaner code
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/fhandler_socket_unix.cc | 6 +++---
1 file 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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-28 11:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-28 11:43 [newlib-cygwin] Cygwin: AF_UNIX: use Nt functions within Nt functions Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).