* winsup.h (clear_procimptoken): Close hProcImpToken in a safer way.
This commit is contained in:
parent
56face1741
commit
1fd82398bb
|
@ -1,3 +1,7 @@
|
|||
2006-12-13 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* winsup.h (clear_procimptoken): Close hProcImpToken in a safer way.
|
||||
|
||||
2006-12-13 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* security.cc (lsaauth): Initialize lsa to INVALID_HANDLE_VALUE to
|
||||
|
|
|
@ -365,8 +365,9 @@ inline void clear_procimptoken ()
|
|||
{
|
||||
if (hProcImpToken)
|
||||
{
|
||||
CloseHandle (hProcImpToken);
|
||||
HANDLE old_procimp = hProcImpToken;
|
||||
hProcImpToken = NULL;
|
||||
CloseHandle (old_procimp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue