From: Vadim Zeitlin <vadim@wxwidgets.org> Date: Mon, 8 Apr 2002 16:31:18 +0000 (+0000) Subject: fixed format parameter in wxGetVolumeString() (closes patch 541037) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6ce27aa2fdfc14e6cbe811661a95f98e9563b1e5 fixed format parameter in wxGetVolumeString() (closes patch 541037) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filename.cpp b/src/common/filename.cpp index c93c314032..e99778308b 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -246,6 +246,8 @@ static wxString wxGetVolumeString(const wxString& volume, wxPathFormat format) if ( !volume.empty() ) { + format = wxFileName::GetFormat(format); + // Special Windows UNC paths hack, part 2: undo what we did in // SplitPath() and make an UNC path if we have a drive which is not a // single letter (hopefully the network shares can't be one letter only