]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed format parameter in wxGetVolumeString() (closes patch 541037)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Apr 2002 16:31:18 +0000 (16:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Apr 2002 16:31:18 +0000 (16:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index c93c3140322d157f01c3e751f22effaa4feb9691..e99778308bbb6a3e2cd30a92508efad740b79629 100644 (file)
@@ -246,6 +246,8 @@ static wxString wxGetVolumeString(const wxString& volume, wxPathFormat format)
 
     if ( !volume.empty() )
     {
 
     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
         // 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