mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 13:27:35 +00:00
secur32: Fix secur32 test to pass on windows.
This commit is contained in:
parent
f0085e6376
commit
de0619e3a7
1 changed files with 9 additions and 2 deletions
|
@ -51,7 +51,8 @@ static void testGetComputerObjectNameA(void)
|
|||
rc = pGetComputerObjectNameA(formats[i], name, &size);
|
||||
ok(rc || ((formats[i] == NameUnknown) &&
|
||||
(GetLastError() == ERROR_INVALID_PARAMETER)) ||
|
||||
(GetLastError() == ERROR_CANT_ACCESS_DOMAIN_INFO),
|
||||
(GetLastError() == ERROR_CANT_ACCESS_DOMAIN_INFO) ||
|
||||
(GetLastError() == ERROR_NO_SUCH_DOMAIN),
|
||||
"GetComputerObjectNameA(%d) failed: %ld\n",
|
||||
formats[i], GetLastError());
|
||||
if (rc)
|
||||
|
@ -72,9 +73,15 @@ static void testGetComputerObjectNameW(void)
|
|||
rc = pGetComputerObjectNameW(formats[i], nameW, &size);
|
||||
ok(rc || ((formats[i] == NameUnknown) &&
|
||||
(GetLastError() == ERROR_INVALID_PARAMETER)) ||
|
||||
(GetLastError() == ERROR_CANT_ACCESS_DOMAIN_INFO),
|
||||
(GetLastError() == ERROR_CANT_ACCESS_DOMAIN_INFO) ||
|
||||
(GetLastError() == ERROR_NO_SUCH_DOMAIN),
|
||||
"GetComputerObjectNameW(%d) failed: %ld\n",
|
||||
formats[i], GetLastError());
|
||||
if (rc) {
|
||||
char name[256];
|
||||
WideCharToMultiByte( CP_ACP, 0, nameW, -1, name, sizeof(name), NULL, NULL );
|
||||
trace("GetComputerObjectNameW() returned %s\n", name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue