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
5425cb35
Commit
5425cb35
authored
Oct 21, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fixed a couple items from previous patch (spotted by G Pfeifer).
parent
ec087dac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
lsa.c
dlls/advapi32/lsa.c
+9
-10
No files found.
dlls/advapi32/lsa.c
View file @
5425cb35
...
...
@@ -59,9 +59,8 @@ static void dumpLsaAttributes(PLSA_OBJECT_ATTRIBUTES oa)
static
void
*
ADVAPI_GetDomainName
(
unsigned
sz
,
unsigned
ofs
)
{
HKEY
key
;
BOOL
useDefault
=
TRUE
;
LONG
ret
;
BYTE
*
ptr
;
BYTE
*
ptr
=
NULL
;
UNICODE_STRING
*
ustr
;
static
const
WCHAR
wVNETSUP
[]
=
{
...
...
@@ -84,26 +83,26 @@ static void* ADVAPI_GetDomainName(unsigned sz, unsigned ofs)
ustr
=
(
UNICODE_STRING
*
)(
ptr
+
ofs
);
ustr
->
MaximumLength
=
size
;
ustr
->
Buffer
=
(
WCHAR
*
)(
ptr
+
sz
);
if
((
ret
=
RegQueryValueExW
(
key
,
wg
,
NULL
,
NULL
,
(
LPBYTE
)
ustr
->
Buffer
,
&
size
))
=
=
ERROR_SUCCESS
)
ret
=
RegQueryValueExW
(
key
,
wg
,
NULL
,
NULL
,
(
LPBYTE
)
ustr
->
Buffer
,
&
size
);
if
(
ret
!
=
ERROR_SUCCESS
)
{
ustr
->
Length
=
(
USHORT
)(
size
-
sizeof
(
WCHAR
));
useDefault
=
FALSE
;
}
else
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
ptr
=
NULL
;
}
else
ustr
->
Length
=
size
-
sizeof
(
WCHAR
);
}
RegCloseKey
(
key
);
}
if
(
useDefault
)
if
(
!
ptr
)
{
static
const
WCHAR
wDomain
[]
=
{
'D'
,
'O'
,
'M'
,
'A'
,
'I'
,
'N'
,
'\0'
};
ptr
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sz
+
sizeof
(
wDomain
));
if
(
!
ptr
)
return
NULL
;
ustr
=
(
UNICODE_STRING
*
)(
ptr
+
ofs
);
ustr
->
MaximumLength
=
sizeof
(
wDomain
);
ustr
->
Buffer
=
(
WCHAR
*
)(
ptr
+
sz
);
ustr
->
Length
=
(
USHORT
)(
sizeof
(
wDomain
)
-
sizeof
(
WCHAR
)
);
ustr
->
Length
=
sizeof
(
wDomain
)
-
sizeof
(
WCHAR
);
memcpy
(
ustr
->
Buffer
,
wDomain
,
sizeof
(
wDomain
));
}
return
ptr
;
...
...
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