advapi32: Fix a test that fails on some versions of win2k.

oldstable
James Hawkins 2008-04-18 23:21:14 -05:00 committed by Alexandre Julliard
parent a42f4b654b
commit 3a4f271a6b
1 changed files with 8 additions and 2 deletions

View File

@ -1102,11 +1102,17 @@ static void test_regconnectregistry( void)
lstrcpynA(netwName+2, compName, MAX_COMPUTERNAME_LENGTH + 1);
retl = RegConnectRegistryA( compName, HKEY_LOCAL_MACHINE, &hkey);
ok( !retl || retl == ERROR_DLL_INIT_FAILED, "RegConnectRegistryA failed err = %d\n", retl);
ok( !retl ||
retl == ERROR_DLL_INIT_FAILED ||
retl == ERROR_BAD_NETPATH, /* some win2k */
"RegConnectRegistryA failed err = %d\n", retl);
if( !retl) RegCloseKey( hkey);
retl = RegConnectRegistryA( netwName, HKEY_LOCAL_MACHINE, &hkey);
ok( !retl || retl == ERROR_DLL_INIT_FAILED, "RegConnectRegistryA failed err = %d\n", retl);
ok( !retl ||
retl == ERROR_DLL_INIT_FAILED ||
retl == ERROR_BAD_NETPATH, /* some win2k */
"RegConnectRegistryA failed err = %d\n", retl);
if( !retl) RegCloseKey( hkey);
SetLastError(0xdeadbeef);