summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sot/source/sdstor/stgstrms.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index bf751a33e681..722095e50605 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -236,7 +236,9 @@ sal_Int32 StgFAT::AllocPages( sal_Int32 nBgn, sal_Int32 nPgs )
if( !rStrm.SetSize( ( nPages + nPgs ) << 2 ) )
return STG_EOF;
if( !bPhys && !InitNew( nPages ) )
- return false;
+ return 0;
+ // FIXME: this was originally "FALSE", whether or not that
+ // makes sense (or should be STG_EOF instead, say?)
nPages = rStrm.GetSize() >> 2;
nPasses++;
}