diff options
author | Oliver Braun <obr@openoffice.org> | 2001-05-11 18:17:56 +0000 |
---|---|---|
committer | Oliver Braun <obr@openoffice.org> | 2001-05-11 18:17:56 +0000 |
commit | 704b80a1f9b0271184968c67434dcd9dfe821867 (patch) | |
tree | 352b5171f6e43af6661e64063ea0dd333c16c330 /sal | |
parent | 6393128274a997b569e0c513043af2ea8d2580ed (diff) |
additional checks
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/osl/file.hxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sal/inc/osl/file.hxx b/sal/inc/osl/file.hxx index b92d99f4e6c5..f168f7bd67f6 100644 --- a/sal/inc/osl/file.hxx +++ b/sal/inc/osl/file.hxx @@ -2,9 +2,9 @@ * * $RCSfile: file.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: hro $ $Date: 2001-05-10 07:31:43 $ + * last change: $Author: obr $ $Date: 2001-05-11 19:17:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -368,6 +368,7 @@ public: _aInfo.uStructSize = sizeof( oslVolumeInfo ); rtl_fillMemory( &_aInfo.uValidFields, sizeof( oslVolumeInfo ) - sizeof( sal_uInt32 ), 0 ); _strFileSystemName=NULL; + rtl_uString_new( &_strFileSystemName ); _aInfo.pstrFileSystemName = &_strFileSystemName; _aInfo.pDeviceHandle = &_aDevice._aHandle; } @@ -1060,7 +1061,8 @@ public: DirectoryItem( DirectoryItem& rItem ): _pData( rItem._pData) { - osl_acquireDirectoryItem( _pData ); + if( _pData ) + osl_acquireDirectoryItem( _pData ); } @@ -1082,7 +1084,9 @@ public: osl_releaseDirectoryItem( _pData ); _pData = rItem._pData; - osl_acquireDirectoryItem( _pData ); + + if( _pData ) + osl_acquireDirectoryItem( _pData ); return *this; }; |