diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-28 04:16:28 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-28 04:16:28 +0000 |
commit | 1fac915d7b1c8329763d6eff13ab8fce6664e17a (patch) | |
tree | 792936678e861d954bb4855821cb449b73549781 /ace/Registry.cpp | |
parent | 41bf58be18739057345a0c70dea2eb57cdba5fcc (diff) | |
download | ATCD-1fac915d7b1c8329763d6eff13ab8fce6664e17a.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Registry.cpp')
-rw-r--r-- | ace/Registry.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/Registry.cpp b/ace/Registry.cpp index e45e0206ddc..251806a4926 100644 --- a/ace/Registry.cpp +++ b/ace/Registry.cpp @@ -907,7 +907,7 @@ ACE_Registry::Binding_Iterator::Object_Iteration::next_n (u_long how_many, while (how_many > 0) { TCHAR string [ACE_Registry::Naming_Context::MAX_CONTEXT_NAME_SIZE]; - u_long size = sizeof string; + u_long size = sizeof string / sizeof TCHAR; long result = ::RegEnumValue (this->parent_->naming_context (). key(), this->index_, string, @@ -977,7 +977,7 @@ ACE_Registry::Binding_Iterator::Context_Iteration::next_n (u_long how_many, while (how_many > 0) { TCHAR string [ACE_Registry::Naming_Context::MAX_CONTEXT_NAME_SIZE]; - u_long size = sizeof string; + u_long size = sizeof string / sizeof TCHAR; long result = ::RegEnumKeyEx (this->parent_->naming_context (). key (), this->index_, string, @@ -1082,7 +1082,7 @@ int ACE_Predefined_Naming_Contexts::is_local_host (LPCTSTR machine_name) { TCHAR local_host[MAXHOSTNAMELEN]; - int result = ACE_OS::hostname (local_host, sizeof (local_host)); + int result = ACE_OS::hostname (local_host, sizeof local_host / sizeof TCHAR); if (result == 0) result = !ACE_OS::strcmp (local_host, machine_name); else |