diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-07-22 16:33:48 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-07-22 16:33:48 +0000 |
commit | 4c93ec75fcbe593eedeb9cd705ce558b0828d590 (patch) | |
tree | 1be0bd015d580d2927e94c7939a2a5d75c24a2cf /xml2cmp | |
parent | 7ee8239e4db5c3622aa74deb37215ec1b81e1c2a (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.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xml2cmp/source/xcd/filebuff.cxx b/xml2cmp/source/xcd/filebuff.cxx index 36d2e269d..9767a845b 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; } |