Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
747ab4bf
Commit
747ab4bf
authored
Jan 24, 2007
by
Kai Blin
Committed by
Alexandre Julliard
Jan 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Fix off-by-one error in converting the password to unicode.
parent
938e6758
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ntlm.c
dlls/secur32/ntlm.c
+2
-2
No files found.
dlls/secur32/ntlm.c
View file @
747ab4bf
...
...
@@ -332,12 +332,12 @@ static SECURITY_STATUS SEC_ENTRY ntlm_AcquireCredentialsHandleA(
if
(
identity
->
PasswordLength
!=
0
)
{
passwd_sizeW
=
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LPCSTR
)
identity
->
Password
,
identity
->
PasswordLength
+
1
,
(
LPCSTR
)
identity
->
Password
,
identity
->
PasswordLength
,
NULL
,
0
);
passwd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
passwd_sizeW
*
sizeof
(
SEC_WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LPCSTR
)
identity
->
Password
,
identity
->
PasswordLength
+
1
,
passwd
,
passwd_sizeW
);
identity
->
PasswordLength
,
passwd
,
passwd_sizeW
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment