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
0024d184
Commit
0024d184
authored
Feb 01, 2020
by
Qian Hong
Committed by
Alexandre Julliard
Feb 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix the name and use of DOMAIN_GROUP_RID_USERS.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ee012444
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
security.c
dlls/advapi32/security.c
+3
-2
security.c
dlls/advapi32/tests/security.c
+2
-2
No files found.
dlls/advapi32/security.c
View file @
0024d184
...
...
@@ -187,7 +187,7 @@ static const WCHAR Domain_Admins[] = { 'D','o','m','a','i','n',' ','A','d','m','
static
const
WCHAR
Domain_Computers
[]
=
{
'D'
,
'o'
,
'm'
,
'a'
,
'i'
,
'n'
,
' '
,
'C'
,
'o'
,
'm'
,
'p'
,
'u'
,
't'
,
'e'
,
'r'
,
's'
,
0
};
static
const
WCHAR
Domain_Controllers
[]
=
{
'D'
,
'o'
,
'm'
,
'a'
,
'i'
,
'n'
,
' '
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'l'
,
'e'
,
'r'
,
's'
,
0
};
static
const
WCHAR
Domain_Guests
[]
=
{
'D'
,
'o'
,
'm'
,
'a'
,
'i'
,
'n'
,
' '
,
'G'
,
'u'
,
'e'
,
's'
,
't'
,
's'
,
0
};
static
const
WCHAR
Domain_Users
[]
=
{
'D'
,
'o'
,
'm'
,
'a'
,
'i'
,
'n'
,
' '
,
'U'
,
's'
,
'e'
,
'r'
,
's
'
,
0
};
static
const
WCHAR
None
[]
=
{
'N'
,
'o'
,
'n'
,
'e
'
,
0
};
static
const
WCHAR
Enterprise_Admins
[]
=
{
'E'
,
'n'
,
't'
,
'e'
,
'r'
,
'p'
,
'r'
,
'i'
,
's'
,
'e'
,
' '
,
'A'
,
'd'
,
'm'
,
'i'
,
'n'
,
's'
,
0
};
static
const
WCHAR
ENTERPRISE_DOMAIN_CONTROLLERS
[]
=
{
'E'
,
'N'
,
'T'
,
'E'
,
'R'
,
'P'
,
'R'
,
'I'
,
'S'
,
'E'
,
' '
,
'D'
,
'O'
,
'M'
,
'A'
,
'I'
,
'N'
,
' '
,
'C'
,
'O'
,
'N'
,
'T'
,
'R'
,
'O'
,
'L'
,
'L'
,
'E'
,
'R'
,
'S'
,
0
};
static
const
WCHAR
Everyone
[]
=
{
'E'
,
'v'
,
'e'
,
'r'
,
'y'
,
'o'
,
'n'
,
'e'
,
0
};
...
...
@@ -1185,7 +1185,8 @@ LookupAccountSidW(
ac
=
Domain_Admins
;
break
;
case
DOMAIN_GROUP_RID_USERS
:
ac
=
Domain_Users
;
ac
=
None
;
use
=
SidTypeGroup
;
break
;
case
DOMAIN_GROUP_RID_GUESTS
:
ac
=
Domain_Guests
;
...
...
dlls/advapi32/tests/security.c
View file @
0024d184
...
...
@@ -2928,11 +2928,11 @@ static void test_process_security(void)
dom_size
=
sizeof
(
domain
);
ret
=
LookupAccountSidA
(
NULL
,
UsersSid
,
account
,
&
acc_size
,
domain
,
&
dom_size
,
&
use
);
ok
(
ret
,
"LookupAccountSid failed with %d
\n
"
,
ret
);
todo_wine
ok
(
use
==
SidTypeGroup
,
"expect SidTypeGroup, got %d
\n
"
,
use
);
ok
(
use
==
SidTypeGroup
,
"expect SidTypeGroup, got %d
\n
"
,
use
);
if
(
PRIMARYLANGID
(
GetSystemDefaultLangID
())
!=
LANG_ENGLISH
)
skip
(
"Non-English locale (test with hardcoded 'None')
\n
"
);
else
todo_wine
ok
(
!
strcmp
(
account
,
"None"
),
"expect None, got %s
\n
"
,
account
);
ok
(
!
strcmp
(
account
,
"None"
),
"expect None, got %s
\n
"
,
account
);
res
=
GetTokenInformation
(
token
,
TokenUser
,
NULL
,
0
,
&
size
);
ok
(
!
res
,
"Expected failure, got %d
\n
"
,
res
);
...
...
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