From: Vadim Zeitlin Date: Thu, 23 May 2002 22:01:36 +0000 (+0000) Subject: fixedb ug with normalization of UNC paths (patch 558701) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e83ecba968c94965523be449a56fffcf4c55010b fixedb ug with normalization of UNC paths (patch 558701) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filename.cpp b/src/common/filename.cpp index c097c399e1..05a84579cf 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -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; }