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
ca32deb0
Commit
ca32deb0
authored
Sep 07, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Perform a case-insensitive match on domain names.
parent
b368cd1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
security.c
dlls/advapi32/tests/security.c
+4
-5
No files found.
dlls/advapi32/tests/security.c
View file @
ca32deb0
...
@@ -2249,7 +2249,7 @@ static void test_LookupAccountName(void)
...
@@ -2249,7 +2249,7 @@ static void test_LookupAccountName(void)
ok
(
ret
,
"Failed to lookup account name
\n
"
);
ok
(
ret
,
"Failed to lookup account name
\n
"
);
ok
(
sid_size
==
GetLengthSid
(
psid
),
"Expected %d, got %d
\n
"
,
GetLengthSid
(
psid
),
sid_size
);
ok
(
sid_size
==
GetLengthSid
(
psid
),
"Expected %d, got %d
\n
"
,
GetLengthSid
(
psid
),
sid_size
);
ok
(
!
lstrcmpA
(
account
,
user_name
),
"Expected %s, got %s
\n
"
,
user_name
,
account
);
ok
(
!
lstrcmpA
(
account
,
user_name
),
"Expected %s, got %s
\n
"
,
user_name
,
account
);
ok
(
!
lstrcmpA
(
domain
,
sid_dom
),
"Expected %s, got %s
\n
"
,
sid_dom
,
domain
);
ok
(
!
lstrcmp
i
A
(
domain
,
sid_dom
),
"Expected %s, got %s
\n
"
,
sid_dom
,
domain
);
ok
(
domain_size
==
domain_save
-
1
,
"Expected %d, got %d
\n
"
,
domain_save
-
1
,
domain_size
);
ok
(
domain_size
==
domain_save
-
1
,
"Expected %d, got %d
\n
"
,
domain_save
-
1
,
domain_size
);
ok
(
strlen
(
domain
)
==
domain_size
,
"Expected %d, got %d
\n
"
,
lstrlenA
(
domain
),
domain_size
);
ok
(
strlen
(
domain
)
==
domain_size
,
"Expected %d, got %d
\n
"
,
lstrlenA
(
domain
),
domain_size
);
ok
(
sid_use
==
SidTypeUser
,
"Expected SidTypeUser (%d), got %d
\n
"
,
SidTypeUser
,
sid_use
);
ok
(
sid_use
==
SidTypeUser
,
"Expected SidTypeUser (%d), got %d
\n
"
,
SidTypeUser
,
sid_use
);
...
@@ -2267,7 +2267,7 @@ static void test_LookupAccountName(void)
...
@@ -2267,7 +2267,7 @@ static void test_LookupAccountName(void)
ok
(
ret
,
"Failed to lookup account name
\n
"
);
ok
(
ret
,
"Failed to lookup account name
\n
"
);
ok
(
sid_size
!=
0
,
"sid_size was zero
\n
"
);
ok
(
sid_size
!=
0
,
"sid_size was zero
\n
"
);
ok
(
!
lstrcmpA
(
account
,
"Everyone"
),
"Expected Everyone, got %s
\n
"
,
account
);
ok
(
!
lstrcmpA
(
account
,
"Everyone"
),
"Expected Everyone, got %s
\n
"
,
account
);
ok
(
!
lstrcmpA
(
domain
,
sid_dom
),
"Expected %s, got %s
\n
"
,
sid_dom
,
domain
);
ok
(
!
lstrcmp
i
A
(
domain
,
sid_dom
),
"Expected %s, got %s
\n
"
,
sid_dom
,
domain
);
ok
(
domain_size
==
0
,
"Expected 0, got %d
\n
"
,
domain_size
);
ok
(
domain_size
==
0
,
"Expected 0, got %d
\n
"
,
domain_size
);
ok
(
strlen
(
domain
)
==
domain_size
,
"Expected %d, got %d
\n
"
,
lstrlenA
(
domain
),
domain_size
);
ok
(
strlen
(
domain
)
==
domain_size
,
"Expected %d, got %d
\n
"
,
lstrlenA
(
domain
),
domain_size
);
ok
(
sid_use
==
SidTypeWellKnownGroup
,
"Expected SidTypeWellKnownGroup (%d), got %d
\n
"
,
SidTypeWellKnownGroup
,
sid_use
);
ok
(
sid_use
==
SidTypeWellKnownGroup
,
"Expected SidTypeWellKnownGroup (%d), got %d
\n
"
,
SidTypeWellKnownGroup
,
sid_use
);
...
@@ -2332,9 +2332,8 @@ static void test_LookupAccountName(void)
...
@@ -2332,9 +2332,8 @@ static void test_LookupAccountName(void)
get_sid_info
(
psid
,
&
account
,
&
sid_dom
);
get_sid_info
(
psid
,
&
account
,
&
sid_dom
);
ok
(
ret
,
"Failed to lookup account name
\n
"
);
ok
(
ret
,
"Failed to lookup account name
\n
"
);
/* Using a fixed string will not work on different locales */
/* Using a fixed string will not work on different locales */
ok
(
!
lstrcmpA
(
account
,
domain
),
ok
(
!
lstrcmpiA
(
account
,
domain
),
"Got %s for account and %s for domain, these should be the same
\n
"
,
"Got %s for account and %s for domain, these should be the same
\n
"
,
account
,
domain
);
account
,
domain
);
ok
(
sid_use
==
SidTypeDomain
,
"Expected SidTypeDomain (%d), got %d
\n
"
,
SidTypeDomain
,
sid_use
);
ok
(
sid_use
==
SidTypeDomain
,
"Expected SidTypeDomain (%d), got %d
\n
"
,
SidTypeDomain
,
sid_use
);
HeapFree
(
GetProcessHeap
(),
0
,
psid
);
HeapFree
(
GetProcessHeap
(),
0
,
psid
);
...
...
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