You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@locus.apache.org on 2000/06/01 00:56:52 UTC
cvs commit: xml-xerces/c/src/util/Platforms/Win32 Win32PlatformUtils.cpp
andyh 00/05/31 15:56:52
Modified: c/src/util/Platforms/Win32 Win32PlatformUtils.cpp
Log:
Fixed error check for end of file in Win32 platform utils.
Joe Polastre
Revision Changes Path
1.23 +5 -1 xml-xerces/c/src/util/Platforms/Win32/Win32PlatformUtils.cpp
Index: Win32PlatformUtils.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/Platforms/Win32/Win32PlatformUtils.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- Win32PlatformUtils.cpp 2000/05/10 00:39:20 1.22
+++ Win32PlatformUtils.cpp 2000/05/31 22:56:51 1.23
@@ -56,6 +56,10 @@
/*
* $Log: Win32PlatformUtils.cpp,v $
+ * Revision 1.23 2000/05/31 22:56:51 andyh
+ * Fixed error check for end of file in Win32 platform utils.
+ * Joe Polastre
+ *
* Revision 1.22 2000/05/10 00:39:20 andyh
* Japanese and Korean Encoding Problems with WIndows
* file names. Win98 fix, and relative paths fix.
@@ -312,7 +316,7 @@
// Seek to the end and save that value for return
const unsigned int retVal = ::SetFilePointer(theFile, 0, 0, FILE_END);
- if (curPos == 0xFFFFFFFF)
+ if (retVal == 0xFFFFFFFF)
ThrowXML(XMLPlatformUtilsException, XMLExcepts::File_CouldNotSeekToEnd);
// And put the pointer back