* cygheap.h (cygheap_user::cygheap_user): Initialize token to

INVALID_HANDLE_VALUE.
        * uinfo.cc (uinfo_init): Close token handle if needed.
This commit is contained in:
Corinna Vinschen
2001-06-04 14:29:54 +00:00
parent ac5561f2ed
commit f7fa593d6b
3 changed files with 10 additions and 1 deletions

View File

@ -107,7 +107,8 @@ public:
HANDLE token;
BOOL impersonated;
cygheap_user () : pname (NULL), plogsrv (NULL), pdomain (NULL), psid (NULL) {}
cygheap_user () : pname (NULL), plogsrv (NULL), pdomain (NULL),
psid (NULL), token (INVALID_HANDLE_VALUE) {}
~cygheap_user ();
void set_name (const char *new_name);