]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/regconf.cpp
Applied patch for non-Latin keyboards.
[wxWidgets.git] / src / msw / regconf.cpp
index 4b9844cfbf6c361a8862e92da2e8b4b28a389d9a..fefb7b86c9cc6823cc4227a55d8c0fef085d78f5 100644 (file)
@@ -221,7 +221,11 @@ void wxRegConfig::SetPath(const wxString& strPath)
         {
             strFullPath.reserve(2*m_strPath.length());
 
-            strFullPath << m_strPath << wxCONFIG_PATH_SEPARATOR << strPath;
+            strFullPath << m_strPath;
+            if ( strFullPath.Len() == 0 || 
+                 strFullPath.Last() != wxCONFIG_PATH_SEPARATOR )
+                strFullPath << wxCONFIG_PATH_SEPARATOR; 
+            strFullPath << strPath;
         }
 
         // simplify it: we need to handle ".." here