diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-12-10 08:45:20 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-12-10 08:45:20 +0000 |
commit | 86936cd3534f0e229df709e544f0214451bf1c69 (patch) | |
tree | 4e7c3861e67804fbca3da1d49652aa036f0edf31 /ace/SPIPE_Addr.cpp | |
parent | 264dd3c512960d4cf09f936401ee0cef47610116 (diff) | |
download | ATCD-86936cd3534f0e229df709e544f0214451bf1c69.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/SPIPE_Addr.cpp')
-rw-r--r-- | ace/SPIPE_Addr.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ace/SPIPE_Addr.cpp b/ace/SPIPE_Addr.cpp index 09bbc573c7a..688735e27db 100644 --- a/ace/SPIPE_Addr.cpp +++ b/ace/SPIPE_Addr.cpp @@ -64,28 +64,28 @@ ACE_SPIPE_Addr::set (LPCTSTR addr, len += sizeof(this->SPIPE_addr_.gid_); #if defined (ACE_WIN32) - char *colonp = ACE_OS::strchr (addr, ':'); - char temp[BUFSIZ] ; + TCHAR *colonp = ACE_OS::strchr (addr, ':'); + TCHAR temp[BUFSIZ]; if (colonp == 0) // Assume it's a port number. { - ACE_OS::strcpy(temp, "\\\\.\\pipe\\") ; - ACE_OS::strcat(temp, addr) ; + ACE_OS::strcpy(temp, __TEXT ( "\\\\.\\pipe\\")); + ACE_OS::strcat(temp, addr); } else { - ACE_OS::strcpy(temp, "\\\\") ; - *colonp = '\0'; - if (ACE_OS::strcmp(addr, "localhost") == 0) - ACE_OS::strcat(temp, ".") ; // change localhost to . + ACE_OS::strcpy(temp, __TEXT ("\\\\")); + *colonp = __TEXT ('\0'); + if (ACE_OS::strcmp(addr, __TEXT ("localhost")) == 0) + ACE_OS::strcat(temp, __TEXT (".")); // change localhost to . else - ACE_OS::strcat(temp, addr) ; - ACE_OS::strcat(temp, "\\pipe\\" ) ; - ACE_OS::strcat(temp, colonp+1) ; + ACE_OS::strcat(temp, addr); + ACE_OS::strcat(temp, __TEXT ("\\pipe\\")); + ACE_OS::strcat(temp, colonp+1); } - this->ACE_Addr::base_set (AF_SPIPE, ACE_OS::strlen (temp) + len); + ACE_OS::strcpy(this->SPIPE_addr_.rendezvous_, temp) ; #else |