]> sourceware.org Git - newlib-cygwin.git/blobdiff - winsup/cygwin/security.cc
2004-10-28 Pierre Humblet <pierre.humblet@ieee.org>
[newlib-cygwin.git] / winsup / cygwin / security.cc
index 458e2323a4223532c87ad758574a4ac1a0710318..14f4013354285741b7f1545624b8b30b84e01284 100644 (file)
@@ -69,7 +69,7 @@ extern "C" void
 cygwin_set_impersonation_token (const HANDLE hToken)
 {
   debug_printf ("set_impersonation_token (%d)", hToken);
-  cygheap->user.external_token = hToken;
+  cygheap->user.external_token = hToken == INVALID_HANDLE_VALUE ? NO_IMPERSONATION : hToken;
   return;
 }
 
This page took 0.021723 seconds and 5 git commands to generate.