summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-09-08 15:11:44 +0000
committerOliver Bolte <obo@openoffice.org>2004-09-08 15:11:44 +0000
commit6a30c08701b9161f931f81c5674b3b313c1ebcda (patch)
tree2bdc8b32b20d41a8e59c1c7d30f50090fe0dfe7b /tools
parent196bae14a4d5a59e30b8164c8137bcd11800f25d (diff)
INTEGRATION: CWS getfilesize1 (1.10.76); FILE MERGED
2004/08/24 13:24:25 cmc 1.10.76.1: #i33340# use osl_getFileSize instead of seeking to end and back to get length
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/config.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx
index e90c94e064bf..ce735ebfcd4b 100644
--- a/tools/source/generic/config.cxx
+++ b/tools/source/generic/config.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: config.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: kz $ $Date: 2004-02-26 13:20:06 $
+ * last change: $Author: obo $ $Date: 2004-09-08 16:11:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -169,12 +169,10 @@ static BYTE* ImplSysReadConfig( const XubString& rFileName,
if( aFile.open( osl_File_OpenFlag_Read ) == ::osl::FileBase::E_None )
{
- aFile.setPos( Pos_End, 0 );
sal_uInt64 nPos = 0, nRead = 0;
- if( aFile.getPos( nPos ) == ::osl::FileBase::E_None )
+ if( aFile.getSize( nPos ) == ::osl::FileBase::E_None )
{
pBuf = (BYTE*)SvMemAlloc( nPos );
- aFile.setPos( Pos_Absolut, 0 );
if( aFile.read( pBuf, nPos, nRead ) == ::osl::FileBase::E_None && nRead == nPos )
{
rTimeStamp = ImplSysGetConfigTimeStamp( rFileName );