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
5f1b91e5
Commit
5f1b91e5
authored
Nov 17, 2019
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Aug 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Print name for EXTENDED_NAME_FORMAT argument.
parent
d5a983eb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
8 deletions
+35
-8
secur32.c
dlls/secur32/secur32.c
+35
-8
No files found.
dlls/secur32/secur32.c
View file @
5f1b91e5
...
...
@@ -816,6 +816,33 @@ SECURITY_STATUS WINAPI EnumerateSecurityPackagesA(PULONG pcPackages,
return
ret
;
}
static
const
char
*
debugstr_NameFormat
(
EXTENDED_NAME_FORMAT
format
)
{
static
const
char
*
const
names
[]
=
{
"NameUnknown"
,
"NameFullyQualifiedDN"
,
"NameSamCompatible"
,
"NameDisplay"
,
NULL
,
NULL
,
"NameUniqueId"
,
"NameCanonical"
,
"NameUserPrincipal"
,
"NameCanonicalEx"
,
"NameServicePrincipal"
,
NULL
,
"NameDnsDomain"
,
"NameGivenName"
,
"NameSurname"
};
if
(
format
<
ARRAY_SIZE
(
names
)
&&
names
[
format
])
return
names
[
format
];
return
wine_dbg_sprintf
(
"%u"
,
format
);
}
/***********************************************************************
* GetComputerObjectNameA (SECUR32.@)
*
...
...
@@ -847,7 +874,7 @@ BOOLEAN WINAPI GetComputerObjectNameA(
LPWSTR
bufferW
=
NULL
;
ULONG
sizeW
=
*
nSize
;
TRACE
(
"(%
d %p %p)
\n
"
,
NameFormat
,
lpNameBuffer
,
nSize
);
TRACE
(
"(%
s %p %p)
\n
"
,
debugstr_NameFormat
(
NameFormat
)
,
lpNameBuffer
,
nSize
);
if
(
lpNameBuffer
)
{
if
(
!
(
bufferW
=
malloc
(
sizeW
*
sizeof
(
WCHAR
))))
{
...
...
@@ -879,7 +906,7 @@ BOOLEAN WINAPI GetComputerObjectNameW(
NTSTATUS
ntStatus
;
BOOLEAN
status
;
TRACE
(
"(%
d %p %p)
\n
"
,
NameFormat
,
lpNameBuffer
,
nSize
);
TRACE
(
"(%
s %p %p)
\n
"
,
debugstr_NameFormat
(
NameFormat
)
,
lpNameBuffer
,
nSize
);
if
(
NameFormat
==
NameUnknown
)
{
...
...
@@ -1066,7 +1093,7 @@ BOOLEAN WINAPI GetUserNameExA(
BOOLEAN
rc
;
LPWSTR
bufferW
=
NULL
;
ULONG
sizeW
=
*
nSize
;
TRACE
(
"(%
d %p %p)
\n
"
,
NameFormat
,
lpNameBuffer
,
nSize
);
TRACE
(
"(%
s %p %p)
\n
"
,
debugstr_NameFormat
(
NameFormat
)
,
lpNameBuffer
,
nSize
);
if
(
lpNameBuffer
)
{
bufferW
=
malloc
(
sizeW
*
sizeof
(
WCHAR
));
if
(
bufferW
==
NULL
)
{
...
...
@@ -1098,7 +1125,7 @@ BOOLEAN WINAPI GetUserNameExA(
BOOLEAN
WINAPI
GetUserNameExW
(
EXTENDED_NAME_FORMAT
NameFormat
,
LPWSTR
lpNameBuffer
,
PULONG
nSize
)
{
TRACE
(
"(%
d %p %p)
\n
"
,
NameFormat
,
lpNameBuffer
,
nSize
);
TRACE
(
"(%
s %p %p)
\n
"
,
debugstr_NameFormat
(
NameFormat
)
,
lpNameBuffer
,
nSize
);
switch
(
NameFormat
)
{
...
...
@@ -1155,8 +1182,8 @@ BOOLEAN WINAPI TranslateNameA(
EXTENDED_NAME_FORMAT
DesiredNameFormat
,
LPSTR
lpTranslatedName
,
PULONG
nSize
)
{
FIXME
(
"%p %
d %d %p %p
\n
"
,
lpAccountName
,
AccountNameFormat
,
DesiredNameFormat
,
lpTranslatedName
,
nSize
);
FIXME
(
"%p %
s %s %p %p
\n
"
,
lpAccountName
,
debugstr_NameFormat
(
AccountNameFormat
)
,
debugstr_NameFormat
(
DesiredNameFormat
)
,
lpTranslatedName
,
nSize
);
return
FALSE
;
}
...
...
@@ -1165,8 +1192,8 @@ BOOLEAN WINAPI TranslateNameW(
EXTENDED_NAME_FORMAT
DesiredNameFormat
,
LPWSTR
lpTranslatedName
,
PULONG
nSize
)
{
FIXME
(
"%p %
d %d %p %p
\n
"
,
lpAccountName
,
AccountNameFormat
,
DesiredNameFormat
,
lpTranslatedName
,
nSize
);
FIXME
(
"%p %
s %s %p %p
\n
"
,
lpAccountName
,
debugstr_NameFormat
(
AccountNameFormat
)
,
debugstr_NameFormat
(
DesiredNameFormat
)
,
lpTranslatedName
,
nSize
);
return
FALSE
;
}
...
...
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