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
ffb29fd3
Commit
ffb29fd3
authored
Jun 09, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix Unicode string lengths in LsaLookupSids.
Found by Louis Lenders.
parent
950919ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lsa.c
dlls/advapi32/lsa.c
+3
-3
No files found.
dlls/advapi32/lsa.c
View file @
ffb29fd3
...
...
@@ -491,9 +491,9 @@ NTSTATUS WINAPI LsaLookupSids(
if
(
domain_size
)
{
domain
.
Length
=
domain_size
*
sizeof
(
WCHAR
);
domain
.
Length
=
(
domain_size
-
1
)
*
sizeof
(
WCHAR
);
domain
.
MaximumLength
=
domain_size
*
sizeof
(
WCHAR
);
domain
.
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
domain
.
Length
);
domain
.
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
domain
.
Maximum
Length
);
}
else
{
...
...
@@ -503,7 +503,7 @@ NTSTATUS WINAPI LsaLookupSids(
}
(
*
Names
)[
i
].
Use
=
use
;
(
*
Names
)[
i
].
Name
.
Length
=
name_size
*
sizeof
(
WCHAR
);
(
*
Names
)[
i
].
Name
.
Length
=
(
name_size
-
1
)
*
sizeof
(
WCHAR
);
(
*
Names
)[
i
].
Name
.
MaximumLength
=
name_size
*
sizeof
(
WCHAR
);
(
*
Names
)[
i
].
Name
.
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
name_size
*
sizeof
(
WCHAR
));
LookupAccountSidW
(
NULL
,
Sids
[
i
],
(
*
Names
)[
i
].
Name
.
Buffer
,
&
name_size
,
domain
.
Buffer
,
&
domain_size
,
&
use
);
...
...
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