remove LsaNtStatusToWinError as onecore doesn't support this API (#249)

This commit is contained in:
bagajjal 2017-12-07 12:50:16 -08:00 committed by GitHub
parent 507fe3283a
commit 8906783fa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -296,12 +296,12 @@ process_custom_lsa_auth_req(struct sshbuf* request, struct sshbuf* response, str
InitLsaString(&originName, "sshd");
if ((ret = LsaRegisterLogonProcess(&logon_process_name, &lsa_handle, &mode)) != STATUS_SUCCESS) {
error("LsaRegisterLogonProcess failed, error:%ld", LsaNtStatusToWinError(ret));
error("LsaRegisterLogonProcess failed, error:%x", ret);
goto done;
}
if ((ret = LsaLookupAuthenticationPackage(lsa_handle, &lsa_auth_package_name, &auth_package_id)) != STATUS_SUCCESS) {
error("LsaLookupAuthenticationPackage failed, lsa auth pkg:%ls error:%ld", lsa_pkg, LsaNtStatusToWinError(ret));
error("LsaLookupAuthenticationPackage failed, lsa auth pkg:%ls error:%x", lsa_pkg, ret);
goto done;
}
@ -338,9 +338,9 @@ process_custom_lsa_auth_req(struct sshbuf* request, struct sshbuf* response, str
&quotas,
&subStatus)) != STATUS_SUCCESS) {
if(ret == STATUS_ACCOUNT_RESTRICTION)
error("LsaLogonUser failed, error:%ld subStatus:%ld", LsaNtStatusToWinError(ret), subStatus);
error("LsaLogonUser failed, error:%x subStatus:%ld", ret, subStatus);
else
error("LsaLogonUser failed error:%ld", LsaNtStatusToWinError(ret));
error("LsaLogonUser failed error:%x", ret);
goto done;
}