mirror of
https://github.com/reactos/wine.git
synced 2025-01-31 17:23:53 +00:00
advapi32: EqualSid should set last error to ERROR_SUCCESS.
This commit is contained in:
parent
3498a88179
commit
1f3a14e767
@ -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;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user