advapi32/tests: Add check to see if LookupAccountNameA is implemented.

This commit is contained in:
Paul Vriens 2007-03-29 21:08:22 +02:00 committed by Alexandre Julliard
parent e54247b10c
commit bb00c95c45
1 changed files with 5 additions and 0 deletions

View File

@ -1299,6 +1299,11 @@ static void test_LookupAccountName(void)
sid_use = 0xcafebabe;
SetLastError(0xdeadbeef);
ret = LookupAccountNameA(NULL, user_name, NULL, &sid_size, NULL, &domain_size, &sid_use);
if(!ret && (GetLastError() == ERROR_CALL_NOT_IMPLEMENTED))
{
skip("LookupAccountNameA is not implemented\n");
return;
}
ok(!ret, "Expected 0, got %d\n", ret);
ok(GetLastError() == ERROR_INSUFFICIENT_BUFFER,
"Expected ERROR_INSUFFICIENT_BUFFER, got %d\n", GetLastError());