summaryrefslogtreecommitdiff
path: root/ACE/ace/Registry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Registry.cpp')
-rw-r--r--ACE/ace/Registry.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ACE/ace/Registry.cpp b/ACE/ace/Registry.cpp
index dc60e119788..ee1863a8b88 100644
--- a/ACE/ace/Registry.cpp
+++ b/ACE/ace/Registry.cpp
@@ -1094,6 +1094,7 @@ ACE_Predefined_Naming_Contexts::connect (ACE_Registry::Naming_Context &naming_co
predefined,
&naming_context.key_);
if (predefined == HKEY_CURRENT_USER || predefined == HKEY_CLASSES_ROOT)
+ {
// Make sure that for these types, the machine is local
if (machine_name == 0 ||
ACE_Predefined_Naming_Contexts::is_local_host (machine_name))
@@ -1103,6 +1104,7 @@ ACE_Predefined_Naming_Contexts::connect (ACE_Registry::Naming_Context &naming_co
}
else
result = -1;
+ }
ACE_REGISTRY_CALL_RETURN (result);
#endif // ACE_HAS_WINCE