]> git.saurik.com Git - wxWidgets.git/commitdiff
wxstringbufferlen stl fixup
authorRyan Norton <wxprojects@comcast.net>
Thu, 4 Nov 2004 17:51:28 +0000 (17:51 +0000)
committerRyan Norton <wxprojects@comcast.net>
Thu, 4 Nov 2004 17:51:28 +0000 (17:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/uri.cpp

index 0608b4c82f095d04f3977cec6a0cb2d297701429..8d5ab03e75d3720e4108152f30d4f1ad49ca6734 100644 (file)
@@ -590,6 +590,9 @@ const wxChar* wxURI::ParsePath(const wxChar* uri, bool bReference, bool bNormali
         if (bNormalize)
         {
             wxStringBufferLength theBuffer(m_path, m_path.length() + 1);
+#if wxUSE_STL
+            wxMemcpy(theBuffer, m_path.c_str(), m_path.length()+1);
+#endif
             Normalize(theBuffer, true);
             theBuffer.SetLength(wxStrlen(theBuffer));
         }
@@ -627,6 +630,9 @@ const wxChar* wxURI::ParsePath(const wxChar* uri, bool bReference, bool bNormali
             if (bNormalize)
             {
                 wxStringBufferLength theBuffer(m_path, m_path.length() + 1);
+#if wxUSE_STL
+                wxMemcpy(theBuffer, m_path.c_str(), m_path.length()+1);
+#endif
                 Normalize(theBuffer);
                 theBuffer.SetLength(wxStrlen(theBuffer));
             }