summaryrefslogtreecommitdiff
path: root/ace/Registry.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-10 08:45:20 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-10 08:45:20 +0000
commit7db29418e44bdce4e3df96493b852118cdd82a4a (patch)
tree4e7c3861e67804fbca3da1d49652aa036f0edf31 /ace/Registry.cpp
parent3d462be371ad3548e4d2d68abf4f95372e7c529f (diff)
downloadATCD-7db29418e44bdce4e3df96493b852118cdd82a4a.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Registry.cpp')
-rw-r--r--ace/Registry.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ace/Registry.cpp b/ace/Registry.cpp
index e739ade292c..2fa26ee9ebb 100644
--- a/ace/Registry.cpp
+++ b/ace/Registry.cpp
@@ -20,7 +20,7 @@
// Separator for components in a name
/* static */
-const ACE_Registry::Istring ACE_Registry::STRING_SEPARATOR = "\\";
+const ACE_Registry::Istring ACE_Registry::STRING_SEPARATOR = __TEXT ("\\");
// Simple binding constructor
@@ -1046,15 +1046,15 @@ ACE_Registry::Binding_Iterator::Iteration_Complete::next_n (u_long how_many,
int
ACE_Predefined_Naming_Contexts::connect (ACE_Registry::Naming_Context &naming_context,
HKEY predefined,
- LPCSTR machine_name)
+ LPCTSTR machine_name)
{
long result = -1;
- if (machine_name != 0 && ACE_OS::strcmp ("localhost", machine_name) == 0)
+ if (machine_name != 0 && ACE_OS::strcmp (__TEXT ("localhost"), machine_name) == 0)
machine_name = 0;
if (predefined == HKEY_LOCAL_MACHINE || predefined == HKEY_USERS)
- result = ::RegConnectRegistry ((LPSTR) machine_name,
+ result = ::RegConnectRegistry ((LPTSTR) machine_name,
predefined,
&naming_context.key_);
if (predefined == HKEY_CURRENT_USER || predefined == HKEY_CLASSES_ROOT)
@@ -1074,7 +1074,7 @@ ACE_Predefined_Naming_Contexts::connect (ACE_Registry::Naming_Context &naming_co
// Check if <machine_name> is the local host
/* static */
int
-ACE_Predefined_Naming_Contexts::is_local_host (LPCSTR machine_name)
+ACE_Predefined_Naming_Contexts::is_local_host (LPCTSTR machine_name)
{
TCHAR local_host[MAXHOSTNAMELEN];
int result = ACE_OS::hostname (local_host, sizeof (local_host));