It is not really clear this is correct, but neither was the
previous behavior.
Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
(cherry picked from commit
c654e9c7436cdd57cb61c0bd29b26c79e3675a01)
ticket: 7255
status: resolved
LsaDeregisterLogonProcess(LogonHandle);
if (FAILED(Status) || FAILED(SubStatus)) {
- if ( SubStatus == STATUS_NOT_SUPPORTED )
+ if (SubStatus == STATUS_NOT_SUPPORTED ||
+ SubStatus == SEC_E_NO_CREDENTIALS)
/* The combination of the two CacheOption flags
* is not supported; therefore, the new flag is supported
*/