summaryrefslogtreecommitdiff
path: root/xml2cmp
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-07-22 16:33:48 +0000
committerOliver Bolte <obo@openoffice.org>2008-07-22 16:33:48 +0000
commitb1063b4143b4406e13f859334e0d9d24bd7dd797 (patch)
tree395651ec900c7c4541d12db20f9ee5d433286751 /xml2cmp
parentaae0070453fa8428c8a8bc3a05ec4d6abe3a3b7d (diff)
INTEGRATION: CWS os2port03 (1.9.8); FILE MERGED
2008/07/16 13:41:57 obr 1.9.8.2: RESYNC: (1.9-1.10); FILE MERGED 2008/01/29 16:53:39 ydario 1.9.8.1: use a different way to check ok status for os2. Issue number:i85203 Submitted by:ydario
Diffstat (limited to 'xml2cmp')
-rw-r--r--xml2cmp/source/xcd/filebuff.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/xml2cmp/source/xcd/filebuff.cxx b/xml2cmp/source/xcd/filebuff.cxx
index 35d32c15c8d7..e958c274b552 100644
--- a/xml2cmp/source/xcd/filebuff.cxx
+++ b/xml2cmp/source/xcd/filebuff.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: filebuff.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
* This file is part of OpenOffice.org.
*
@@ -59,7 +59,11 @@ LoadXmlFile( Buffer & o_rBuffer,
// Read file:
aXmlFile.read(o_rBuffer.Data(), (int) nBufferSize);
+#ifdef OS2 // YD eof&fail are set, so check for fail&bad
+ bool ret = aXmlFile.fail() != 0;
+#else
bool ret = aXmlFile.good() != 0;
+#endif
aXmlFile.close();
return ret;
}