summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/ActivatorI.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-12-24 20:14:56 +0000
committerMark Spruiell <mes@zeroc.com>2003-12-24 20:14:56 +0000
commit476bf03ad085bd3e5cb5c5f7026a17654ccf368a (patch)
treeb48de45df3513d8c869c2a4a59d5fce59100af60 /cpp/src/IcePack/ActivatorI.cpp
parentadding IcePack demo (diff)
downloadice-476bf03ad085bd3e5cb5c5f7026a17654ccf368a.tar.bz2
ice-476bf03ad085bd3e5cb5c5f7026a17654ccf368a.tar.xz
ice-476bf03ad085bd3e5cb5c5f7026a17654ccf368a.zip
use SearchPath to find the executable
Diffstat (limited to 'cpp/src/IcePack/ActivatorI.cpp')
-rw-r--r--cpp/src/IcePack/ActivatorI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IcePack/ActivatorI.cpp b/cpp/src/IcePack/ActivatorI.cpp
index 3b93d46e769..adaf43ab328 100644
--- a/cpp/src/IcePack/ActivatorI.cpp
+++ b/cpp/src/IcePack/ActivatorI.cpp
@@ -159,7 +159,8 @@ IcePack::ActivatorI::activate(const ServerPtr& server)
// Get the absolute pathname of the executable.
//
char absbuf[_MAX_PATH];
- if(_fullpath(absbuf, path.c_str(), _MAX_PATH) == NULL)
+ char* filePart;
+ if(SearchPath(NULL, path.c_str(), ".exe", _MAX_PATH, absbuf, &filePart) == 0)
{
Error out(_traceLevels->logger);
out << "cannot convert `" << path << "' into an absolute path";