summaryrefslogtreecommitdiff
path: root/ace/Parse_Node.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-04-23 23:29:03 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-04-23 23:29:03 +0000
commita61ecf453db8d9fd175a5aacf36df12efecf6378 (patch)
tree70b772de024bd17b9e82c580671fc51fa5c419f5 /ace/Parse_Node.cpp
parent73422932eb938bfef60ba9ea2bf4ceaa16c09f6f (diff)
downloadATCD-a61ecf453db8d9fd175a5aacf36df12efecf6378.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Parse_Node.cpp')
-rw-r--r--ace/Parse_Node.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/ace/Parse_Node.cpp b/ace/Parse_Node.cpp
index 03fd2d685be..5ecf3469e47 100644
--- a/ace/Parse_Node.cpp
+++ b/ace/Parse_Node.cpp
@@ -372,10 +372,19 @@ ACE_Location_Node::open_handle (void)
ACE_TRACE ("ACE_Location_Node::open_handle");
ASYS_TCHAR dl_pathname[MAXPATHLEN + 1];
+ ASYS_TCHAR *name = ASYS_WIDE_STRING (this->pathname ());
+
+#if defined (ACE_WIN32)
+ ASYS_TCHAR dl_exppathname[MAXPATHLEN];
+ if (::ExpandEnvironmentStringsA (name,
+ dl_exppathname,
+ MAXPATHLEN))
+ name = dl_exppathname;
+#endif /* ACE_WIN32 */
// Transform the pathname into the appropriate dynamic link library
// by searching the ACE_LD_SEARCH_PATH.
- ACE::ldfind (ASYS_WIDE_STRING (this->pathname ()),
+ ACE::ldfind (name,
dl_pathname,
(sizeof dl_pathname / sizeof (ASYS_TCHAR)));