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
1f3a14e7
Commit
1f3a14e7
authored
Nov 15, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Nov 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: EqualSid should set last error to ERROR_SUCCESS.
parent
3498a881
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
security.c
dlls/advapi32/security.c
+3
-1
security.c
dlls/advapi32/tests/security.c
+0
-3
No files found.
dlls/advapi32/security.c
View file @
1f3a14e7
...
...
@@ -1055,7 +1055,9 @@ IsValidSid( PSID pSid )
BOOL
WINAPI
EqualSid
(
PSID
pSid1
,
PSID
pSid2
)
{
return
RtlEqualSid
(
pSid1
,
pSid2
);
BOOL
ret
=
RtlEqualSid
(
pSid1
,
pSid2
);
SetLastError
(
ERROR_SUCCESS
);
return
ret
;
}
/******************************************************************************
...
...
dlls/advapi32/tests/security.c
View file @
1f3a14e7
...
...
@@ -3296,7 +3296,6 @@ static void test_EqualSid(void)
SetLastError
(
0xdeadbeef
);
ret
=
EqualSid
(
sid1
,
sid2
);
ok
(
!
ret
,
"World and domain admins sids shouldn't have been equal
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"EqualSid should have set last error to ERROR_SUCCESS instead of %d
\n
"
,
GetLastError
());
...
...
@@ -3315,7 +3314,6 @@ static void test_EqualSid(void)
SetLastError
(
0xdeadbeef
);
ret
=
EqualSid
(
sid1
,
sid2
);
ok
(
ret
,
"Same sids should have been equal
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"EqualSid should have set last error to ERROR_SUCCESS instead of %d
\n
"
,
GetLastError
());
...
...
@@ -3324,7 +3322,6 @@ static void test_EqualSid(void)
SetLastError
(
0xdeadbeef
);
ret
=
EqualSid
(
sid1
,
sid2
);
ok
(
!
ret
,
"EqualSid with invalid sid should have returned FALSE
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"EqualSid should have set last error to ERROR_SUCCESS instead of %d
\n
"
,
GetLastError
());
...
...
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