Module: wine Branch: master Commit: 3a4f271a6b943e72040645846fbf47c8cc72cfc1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3a4f271a6b943e72040645846f...
Author: James Hawkins jhawkins@codeweavers.com Date: Fri Apr 18 23:21:14 2008 -0500
advapi32: Fix a test that fails on some versions of win2k.
---
dlls/advapi32/tests/registry.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c index 474879e..5d86d9b 100644 --- a/dlls/advapi32/tests/registry.c +++ b/dlls/advapi32/tests/registry.c @@ -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);