summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/Util.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2005-11-28 19:20:43 +0000
committerBenoit Foucher <benoit@zeroc.com>2005-11-28 19:20:43 +0000
commit65784376867894c8dadd9785a6b5fc9deab99094 (patch)
tree87f81e0bb1f0a9246d20d3f3439184018970cb3e /cpp/src/IcePatch2/Util.cpp
parentFixed potential memory leak (diff)
downloadice-65784376867894c8dadd9785a6b5fc9deab99094.tar.bz2
ice-65784376867894c8dadd9785a6b5fc9deab99094.tar.xz
ice-65784376867894c8dadd9785a6b5fc9deab99094.zip
Fixed bug where the icegridnode wouldn't start on boot as a Windows
service. Fixed compilation error with IcePatch2 and Visual C++ 6.0.
Diffstat (limited to 'cpp/src/IcePatch2/Util.cpp')
-rw-r--r--cpp/src/IcePatch2/Util.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/IcePatch2/Util.cpp b/cpp/src/IcePatch2/Util.cpp
index 95479095586..375ce122de9 100644
--- a/cpp/src/IcePatch2/Util.cpp
+++ b/cpp/src/IcePatch2/Util.cpp
@@ -465,7 +465,11 @@ IcePatch2::readDirectory(const string& pa)
#ifdef _WIN32
struct _finddata_t data;
+#if defined(_MSC_VER) && (_MSC_VER < 1300)
+ long h = _findfirst(simplify((path + "/*")).c_str(), &data);
+#else
intptr_t h = _findfirst(simplify((path + "/*")).c_str(), &data);
+#endif
if(h == -1)
{
throw "cannot read directory `" + path + "':\n" + lastError();