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
d5a983eb
Commit
d5a983eb
authored
Nov 15, 2019
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Aug 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Print name for POLICY_INFORMATION_CLASS argument.
parent
d173bc6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
lsa.c
dlls/advapi32/lsa.c
+29
-2
No files found.
dlls/advapi32/lsa.c
View file @
d5a983eb
...
...
@@ -62,6 +62,33 @@ static void dumpLsaAttributes(const LSA_OBJECT_ATTRIBUTES *oa)
}
}
static
const
char
*
debugstr_InformationClass
(
POLICY_INFORMATION_CLASS
class
)
{
static
const
char
*
const
names
[]
=
{
NULL
,
"PolicyAuditLogInformation"
,
"PolicyAuditEventsInformation"
,
"PolicyPrimaryDomainInformation"
,
"PolicyPdAccountInformation"
,
"PolicyAccountDomainInformation"
,
"PolicyLsaServerRoleInformation"
,
"PolicyReplicaSourceInformation"
,
"PolicyDefaultQuotaInformation"
,
"PolicyModificationInformation"
,
"PolicyAuditFullSetInformation"
,
"PolicyAuditFullQueryInformation"
,
"PolicyDnsDomainInformation"
,
"PolicyDnsDomainInformationInt"
,
"PolicyLocalAccountDomainInformation"
,
"PolicyMachineAccountInformation"
,
"PolicyMachineAccountInformation2"
,
};
if
(
class
<
ARRAY_SIZE
(
names
)
&&
names
[
class
])
return
names
[
class
];
return
wine_dbg_sprintf
(
"%u"
,
class
);
}
static
void
*
ADVAPI_GetDomainName
(
unsigned
sz
,
unsigned
ofs
)
{
HKEY
key
;
...
...
@@ -779,7 +806,7 @@ NTSTATUS WINAPI LsaQueryInformationPolicy(
IN
POLICY_INFORMATION_CLASS
InformationClass
,
OUT
PVOID
*
Buffer
)
{
TRACE
(
"(%p,
0x%08x,%p)
\n
"
,
PolicyHandle
,
InformationClass
,
Buffer
);
TRACE
(
"(%p,
%s,%p)
\n
"
,
PolicyHandle
,
debugstr_InformationClass
(
InformationClass
)
,
Buffer
);
if
(
!
Buffer
)
return
STATUS_INVALID_PARAMETER
;
switch
(
InformationClass
)
...
...
@@ -1016,7 +1043,7 @@ NTSTATUS WINAPI LsaSetInformationPolicy(
IN
POLICY_INFORMATION_CLASS
InformationClass
,
IN
PVOID
Buffer
)
{
FIXME
(
"(%p,
0x%08x,%p) stub
\n
"
,
PolicyHandle
,
InformationClass
,
Buffer
);
FIXME
(
"(%p,
%s,%p) stub
\n
"
,
PolicyHandle
,
debugstr_InformationClass
(
InformationClass
)
,
Buffer
);
return
STATUS_UNSUCCESSFUL
;
}
...
...
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