]> git.saurik.com Git - wxWidgets.git/commitdiff
fixedb ug with normalization of UNC paths (patch 558701)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 23 May 2002 22:01:36 +0000 (22:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 23 May 2002 22:01:36 +0000 (22:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index c097c399e13bf26d879169cfa95372541977b8ea..05a84579cf2537cb86b2beca262dc09749ad36e8 100644 (file)
@@ -912,6 +912,11 @@ bool wxFileName::Normalize(int flags,
         m_ext.MakeLower();
     }
 
+    // we do have the path now
+    //
+    // NB: need to do this before (maybe) calling Assign() below
+    m_relative = FALSE;
+
 #if defined(__WIN32__)
     if ( (flags & wxPATH_NORM_LONG) && (format == wxPATH_DOS) )
     {
@@ -919,9 +924,6 @@ bool wxFileName::Normalize(int flags,
     }
 #endif // Win32
 
-    // we do have the path now
-    m_relative = FALSE;
-
     return TRUE;
 }