Fix Windows.

This commit is contained in:
Stephan Bergmann 2012-01-21 17:57:10 +01:00
parent c76d098cd8
commit f433d5a9b8
2 changed files with 4 additions and 4 deletions

View file

@ -1529,9 +1529,9 @@ DirEntry DirEntry::GetDevice() const
if ( ( pTop->eFlag == FSYS_FLAG_ABSROOT || pTop->eFlag == FSYS_FLAG_RELROOT ) &&
!pTop->aName.isEmpty() )
return DirEntry( pTop->aName, FSYS_FLAG_VOLUME, FSYS_STYLE_HOST );
return DirEntry( pTop->aName, FSYS_FLAG_VOLUME );
else
return DirEntry( rtl::OString(), FSYS_FLAG_INVALID, FSYS_STYLE_HOST );
return DirEntry( rtl::OString(), FSYS_FLAG_INVALID );
}
#endif

View file

@ -315,13 +315,13 @@ USHORT DirReader_Impl::Read()
DirEntry *pTemp = new DirEntry( rtl::OString(pDosEntry->d_name),
eFlag );
#ifdef FEAT_FSYS_DOUBLESPEED
pTemp->ImpSetStat( new FileStat( (void*) pDosDir, (void*) 0 ) );
pTemp->ImpSetStat( new FileStat( (void*) pDosDir ) );
#endif
if ( pParent )
pTemp->ImpChangeParent( new DirEntry( *pParent ), sal_False );
if ( pDir->pStatLst ) //Status fuer Sort gewuenscht?
{
FileStat *pNewStat = new FileStat( (void*) pDosDir, (void*) 0 );
FileStat *pNewStat = new FileStat( (void*) pDosDir );
pDir->ImpSortedInsert( pTemp, pNewStat );
}
else