Commit 84935f5c authored by Kai Blin's avatar Kai Blin Committed by Alexandre Julliard

secur32: Fix GetComputerObjectName tests for domain members.

At least for XP domain members, all EXTENDED_NAME_FORMATS apart from NameSamCompatible return ERROR_ACCESS_DENIED. Given that the function returns an error for all formats on non-members, just ignore ERROR_ACCESS_DENIED as well.
parent 3ad71989
...@@ -55,7 +55,8 @@ static void testGetComputerObjectNameA(void) ...@@ -55,7 +55,8 @@ static void testGetComputerObjectNameA(void)
ok(rc || ((formats[i] == NameUnknown) && ok(rc || ((formats[i] == NameUnknown) &&
(GetLastError() == ERROR_INVALID_PARAMETER)) || (GetLastError() == ERROR_INVALID_PARAMETER)) ||
(GetLastError() == ERROR_CANT_ACCESS_DOMAIN_INFO) || (GetLastError() == ERROR_CANT_ACCESS_DOMAIN_INFO) ||
(GetLastError() == ERROR_NO_SUCH_DOMAIN), (GetLastError() == ERROR_NO_SUCH_DOMAIN) ||
(GetLastError() == ERROR_ACCESS_DENIED),
"GetComputerObjectNameA(%d) failed: %d\n", "GetComputerObjectNameA(%d) failed: %d\n",
formats[i], GetLastError()); formats[i], GetLastError());
if (rc) if (rc)
...@@ -77,7 +78,8 @@ static void testGetComputerObjectNameW(void) ...@@ -77,7 +78,8 @@ static void testGetComputerObjectNameW(void)
ok(rc || ((formats[i] == NameUnknown) && ok(rc || ((formats[i] == NameUnknown) &&
(GetLastError() == ERROR_INVALID_PARAMETER)) || (GetLastError() == ERROR_INVALID_PARAMETER)) ||
(GetLastError() == ERROR_CANT_ACCESS_DOMAIN_INFO) || (GetLastError() == ERROR_CANT_ACCESS_DOMAIN_INFO) ||
(GetLastError() == ERROR_NO_SUCH_DOMAIN), (GetLastError() == ERROR_NO_SUCH_DOMAIN) ||
(GetLastError() == ERROR_ACCESS_DENIED),
"GetComputerObjectNameW(%d) failed: %d\n", "GetComputerObjectNameW(%d) failed: %d\n",
formats[i], GetLastError()); formats[i], GetLastError());
if (rc) { if (rc) {
......
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