diff options
Diffstat (limited to 'padmin/source/adddlg.cxx')
-rw-r--r-- | padmin/source/adddlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/padmin/source/adddlg.cxx b/padmin/source/adddlg.cxx index ec41d0e777ab..62a4f1417a89 100644 --- a/padmin/source/adddlg.cxx +++ b/padmin/source/adddlg.cxx @@ -295,8 +295,8 @@ IMPL_LINK( APChooseDriverPage, ClickBtnHdl, PushButton*, pButton ) int nPos = file->SearchBackward( '.' ); if( file->Copy( 0, nPos ) == String( aPPD ) ) { - ByteString aSysPath( aFile, aEncoding ); - if( unlink( aSysPath.GetBuffer() ) ) + rtl::OString aSysPath(rtl::OUStringToOString(aFile, aEncoding)); + if (unlink(aSysPath.getStr())) { String aText( PaResId( RID_ERR_REMOVEDRIVERFAILED ) ); aText.SearchAndReplace( String::CreateFromAscii( "%s1" ), m_aDriverBox.GetSelectEntry( i ) ); |