diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-01-06 02:40:37 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-01-06 02:40:37 +0000 |
commit | c8d5df8781f46faa31a31806af7e3ab0dea789ff (patch) | |
tree | 97aa1c7bc0bbba2ac2cb1b6065989a5552d0098e /cpp/src/IcePack/ActivatorI.cpp | |
parent | manual list (diff) | |
download | ice-c8d5df8781f46faa31a31806af7e3ab0dea789ff.tar.bz2 ice-c8d5df8781f46faa31a31806af7e3ab0dea789ff.tar.xz ice-c8d5df8781f46faa31a31806af7e3ab0dea789ff.zip |
fix for VC6 compile error
Diffstat (limited to 'cpp/src/IcePack/ActivatorI.cpp')
-rw-r--r-- | cpp/src/IcePack/ActivatorI.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cpp/src/IcePack/ActivatorI.cpp b/cpp/src/IcePack/ActivatorI.cpp index 517c0261a90..11d0d09c874 100644 --- a/cpp/src/IcePack/ActivatorI.cpp +++ b/cpp/src/IcePack/ActivatorI.cpp @@ -559,8 +559,11 @@ IcePack::ActivatorI::activate(const ServerPtr& server) ex.error = getSystemErrno(); throw ex; } - if(SetFilePointer(process.outHandle, 0, NULL, FILE_END) - == INVALID_SET_FILE_POINTER) + // + // NOTE: INVALID_SET_FILE_POINTER is not defined in VC6. + // + //if(SetFilePointer(process.outHandle, 0, NULL, FILE_END) == INVALID_SET_FILE_POINTER) + if(SetFilePointer(process.outHandle, 0, NULL, FILE_END) == (DWORD)-1) { SyscallException ex(__FILE__, __LINE__); ex.error = getSystemErrno(); @@ -588,8 +591,11 @@ IcePack::ActivatorI::activate(const ServerPtr& server) ex.error = getSystemErrno(); throw ex; } - if(SetFilePointer(process.errHandle, 0, NULL, FILE_END) - == INVALID_SET_FILE_POINTER) + // + // NOTE: INVALID_SET_FILE_POINTER is not defined in VC6. + // + //if(SetFilePointer(process.errHandle, 0, NULL, FILE_END) == INVALID_SET_FILE_POINTER) + if(SetFilePointer(process.errHandle, 0, NULL, FILE_END) == (DWORD)-1) { SyscallException ex(__FILE__, __LINE__); ex.error = getSystemErrno(); |