diff --git a/tools/source/fsys/wntmsc.hxx b/tools/source/fsys/wntmsc.hxx index 43b700fe17be..ee09a1e0e904 100644 --- a/tools/source/fsys/wntmsc.hxx +++ b/tools/source/fsys/wntmsc.hxx @@ -42,6 +42,7 @@ #include #include +#include //-------------------------------------------------------------------- @@ -75,9 +76,10 @@ typedef struct inline sal_Bool DRIVE_EXISTS(char c) { - ByteString aDriveRoot( c ); - aDriveRoot += ":\\"; - return GetDriveType( aDriveRoot.GetBuffer() ) > 1; + rtl::OStringBuffer aDriveRoot; + aDriveRoot.append(c); + aDriveRoot.append(":\\"); + return GetDriveType( aDriveRoot.getStr() ) > 1; } const char* TempDirImpl( char *pBuf );