summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreicesar <reicesar@gmail.com>2018-03-28 11:07:58 -0300
committerGitHub <noreply@github.com>2018-03-28 11:07:58 -0300
commit6d5ecfa9873a5612940057f2ee852a3c6ec08660 (patch)
tree910e4bf81561ea16c80e6a8d3b3c68c1cd0eaf5f
parent2dcc8afa614abde0f326a4011bc1216f1e73361a (diff)
downloadATCD-6d5ecfa9873a5612940057f2ee852a3c6ec08660.tar.gz
Fix 64bit issue on load registry data
-rw-r--r--TAO/orbsvcs/ImplRepo_Service/Activator_Options.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/Activator_Options.cpp b/TAO/orbsvcs/ImplRepo_Service/Activator_Options.cpp
index ecfe8758e38..dcae5824b66 100644
--- a/TAO/orbsvcs/ImplRepo_Service/Activator_Options.cpp
+++ b/TAO/orbsvcs/ImplRepo_Service/Activator_Options.cpp
@@ -322,7 +322,7 @@ Activator_Options::load_registry_options ()
// If there aren't any saved parameters, then that's ok.
return 0;
}
- char tmpstr[4096];
+ ACE_TCHAR tmpstr[4096];
DWORD sz = sizeof (tmpstr);
DWORD type = 0;
err = ACE_TEXT_RegQueryValueEx (key, ACE_TEXT("ORBInitOptions"), 0, &type,
@@ -331,7 +331,7 @@ Activator_Options::load_registry_options ()
{
ACE_ASSERT (type == REG_SZ);
tmpstr[sz - 1] = '\0';
- this->cmdline_ = tmpstr;
+ this->cmdline_ = ACE_TEXT_ALWAYS_CHAR(tmpstr);
}
sz = sizeof(tmpstr);
@@ -341,7 +341,7 @@ Activator_Options::load_registry_options ()
{
ACE_ASSERT (type == REG_SZ);
tmpstr[sz - 1] = '\0';
- this->ior_output_file_ = ACE_TEXT_CHAR_TO_TCHAR(tmpstr);
+ this->ior_output_file_ = tmpstr;
}
sz = sizeof(debug_);
@@ -359,7 +359,7 @@ Activator_Options::load_registry_options ()
{
ACE_ASSERT (type == REG_SZ);
tmpstr[sz - 1] = '\0';
- this->name_ = tmpstr;
+ this->name_ = ACE_TEXT_ALWAYS_CHAR(tmpstr);
}
DWORD tmpint = 0;