Commit 1f3a14e7 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

advapi32: EqualSid should set last error to ERROR_SUCCESS.

parent 3498a881
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment