summaryrefslogtreecommitdiff
path: root/ace/Registry.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-30 08:40:22 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-10-30 08:40:22 +0000
commit453773bd3e69fb859f068cf0c16dc73db35492f6 (patch)
tree18de61635c0f0b348eb4d9248b994cf4355ec7ea /ace/Registry.cpp
parent329bbbff96bff234b12823ddaa31bd738524c0bd (diff)
downloadATCD-453773bd3e69fb859f068cf0c16dc73db35492f6.tar.gz
fixes
Diffstat (limited to 'ace/Registry.cpp')
-rw-r--r--ace/Registry.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ace/Registry.cpp b/ace/Registry.cpp
index da1f780077c..2e5f3e360e6 100644
--- a/ace/Registry.cpp
+++ b/ace/Registry.cpp
@@ -1049,6 +1049,10 @@ ACE_Predefined_Naming_Contexts::connect (ACE_Registry::Naming_Context &naming_co
LPCSTR machine_name)
{
long result = -1;
+
+ if (machine_name != 0 && ACE_OS::strcmp ("localhost", machine_name) == 0)
+ machine_name = 0;
+
if (predefined == HKEY_LOCAL_MACHINE || predefined == HKEY_USERS)
result = ::RegConnectRegistry ((LPSTR) machine_name,
predefined,