From 4c93ec75fcbe593eedeb9cd705ce558b0828d590 Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Tue, 22 Jul 2008 16:33:48 +0000 Subject: 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 --- xml2cmp/source/xcd/filebuff.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'xml2cmp') 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; } -- cgit v1.2.3