Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a3bcaca4
Commit
a3bcaca4
authored
Mar 02, 2018
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Use GetWindowsAccountDomainSid() to retrieve the domain SID.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8889c862
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
lsa.c
dlls/advapi32/lsa.c
+16
-7
winbase.h
include/winbase.h
+1
-0
No files found.
dlls/advapi32/lsa.c
View file @
a3bcaca4
...
...
@@ -763,16 +763,24 @@ NTSTATUS WINAPI LsaQueryInformationPolicy(
break
;
case
PolicyDnsDomainInformation
:
/* 12 (0xc) */
{
struct
di
struct
{
POLICY_DNS_DOMAIN_INFO
info
;
SID
sid
;
struct
{
SID
sid
;
DWORD
sid_subauthority
[
3
];
}
domain_sid
;
WCHAR
domain_name
[
MAX_COMPUTERNAME_LENGTH
+
1
];
WCHAR
dns_domain_name
[
MAX_COMPUTERNAME_LENGTH
+
1
];
WCHAR
dns_forest_name
[
MAX_COMPUTERNAME_LENGTH
+
1
];
};
}
*
xdi
;
struct
{
SID
sid
;
DWORD
sid_subauthority
[
3
];
}
computer_sid
;
DWORD
dwSize
;
struct
di
*
xdi
;
xdi
=
heap_alloc_zero
(
sizeof
(
*
xdi
));
if
(
!
xdi
)
return
STATUS_NO_MEMORY
;
...
...
@@ -788,10 +796,11 @@ NTSTATUS WINAPI LsaQueryInformationPolicy(
/* FIXME: also set DnsDomainName and DnsForestName */
if
(
ADVAPI_GetComputerSid
(
&
xdi
->
sid
))
dwSize
=
sizeof
(
xdi
->
domain_sid
);
if
(
ADVAPI_GetComputerSid
(
&
computer_sid
.
sid
)
&&
GetWindowsAccountDomainSid
(
&
computer_sid
.
sid
,
&
xdi
->
domain_sid
.
sid
,
&
dwSize
))
{
xdi
->
info
.
Sid
=
&
xdi
->
sid
;
TRACE
(
"setting SID to %s
\n
"
,
debugstr_sid
(
&
xdi
->
sid
));
xdi
->
info
.
Sid
=
&
xdi
->
domain_sid
.
sid
;
TRACE
(
"setting SID to %s
\n
"
,
debugstr_sid
(
&
xdi
->
domain_sid
.
sid
));
}
*
Buffer
=
xdi
;
...
...
include/winbase.h
View file @
a3bcaca4
...
...
@@ -2245,6 +2245,7 @@ WINBASEAPI BOOL WINAPI GetVolumePathNameW(LPCWSTR,LPWSTR,DWORD);
WINBASEAPI
BOOL
WINAPI
GetVolumePathNamesForVolumeNameA
(
LPCSTR
,
LPSTR
,
DWORD
,
PDWORD
);
WINBASEAPI
BOOL
WINAPI
GetVolumePathNamesForVolumeNameW
(
LPCWSTR
,
LPWSTR
,
DWORD
,
PDWORD
);
#define GetVolumePathNamesForVolumeName WINELIB_NAME_AW(GetVolumePathNamesForVolumeName)
WINADVAPI
BOOL
WINAPI
GetWindowsAccountDomainSid
(
PSID
,
PSID
,
DWORD
*
);
WINBASEAPI
UINT
WINAPI
GetWindowsDirectoryA
(
LPSTR
,
UINT
);
WINBASEAPI
UINT
WINAPI
GetWindowsDirectoryW
(
LPWSTR
,
UINT
);
#define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
...
...
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