secur32: Fix conversion of password in NTLM AcquireCredentialsHandleA.
This commit is contained in:
parent
03b040c51d
commit
3ba73f0ff6
|
@ -353,7 +353,7 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleA(
|
||||||
passwd = HeapAlloc(GetProcessHeap(), 0, passwd_sizeW
|
passwd = HeapAlloc(GetProcessHeap(), 0, passwd_sizeW
|
||||||
* sizeof(SEC_WCHAR));
|
* sizeof(SEC_WCHAR));
|
||||||
MultiByteToWideChar(CP_ACP, 0, (LPCSTR)identity->Password,
|
MultiByteToWideChar(CP_ACP, 0, (LPCSTR)identity->Password,
|
||||||
identity->PasswordLength, passwd, passwd_sizeW);
|
identity->PasswordLength+1, passwd, passwd_sizeW);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue