diff options
-rw-r--r-- | svtools/source/misc/filechangedchecker.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/misc/filechangedchecker.cxx b/svtools/source/misc/filechangedchecker.cxx index c1e67a0fe1f0..09e24c3fafb1 100644 --- a/svtools/source/misc/filechangedchecker.cxx +++ b/svtools/source/misc/filechangedchecker.cxx @@ -45,12 +45,13 @@ bool FileChangedChecker::getCurrentModTime(TimeValue& o_rValue) const { // Need a Directory item to fetch file status osl::DirectoryItem aItem; - osl::DirectoryItem::get(mFileName, aItem); + if (osl::FileBase::E_None != osl::DirectoryItem::get(mFileName, aItem)) + return false; // Retrieve the status - we are only interested in last File // Modified time osl::FileStatus aStatus( osl_FileStatus_Mask_ModifyTime ); - if( osl::FileBase::E_None != aItem.getFileStatus(aStatus) ) + if (osl::FileBase::E_None != aItem.getFileStatus(aStatus)) return false; o_rValue = aStatus.getModifyTime(); |