diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-19 15:27:27 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-19 15:27:27 +0000 |
commit | 03a2ce9a3623dddc5ff7db9a3c18e2eb359e4afe (patch) | |
tree | b19c8c77cda62398c18f8b127a7347096f0af86e /winsup/cygwin/uinfo.cc | |
parent | 834224ab85c94d4764d67670a880484ce0785a62 (diff) | |
download | cygnal-03a2ce9a3623dddc5ff7db9a3c18e2eb359e4afe.tar.gz cygnal-03a2ce9a3623dddc5ff7db9a3c18e2eb359e4afe.tar.bz2 cygnal-03a2ce9a3623dddc5ff7db9a3c18e2eb359e4afe.zip |
Use hMainProc where appropriate, throughout.
* environ.cc (spenv::retrieve): Add debugging statements.
* pinfo.cc (set_myself): Don't call strace.hello if already stracing.
* strace.cc (strace): Move NO_COPY keyword so that it will actually take
effect.
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r-- | winsup/cygwin/uinfo.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 84b8af0c8..0eb7892b1 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -43,8 +43,7 @@ internal_getlogin (cygheap_user &user) /* Try to get the SID either from current process and store it in user.psid */ - if (!OpenProcessToken (GetCurrentProcess (), - TOKEN_ADJUST_DEFAULT | TOKEN_QUERY, + if (!OpenProcessToken (hMainProc, TOKEN_ADJUST_DEFAULT | TOKEN_QUERY, &ptok)) system_printf ("OpenProcessToken(): %E\n"); else if (!GetTokenInformation (ptok, TokenUser, &tu, sizeof tu, &siz)) |