]> git.saurik.com Git - wxWidgets.git/commitdiff
applied patch 430963 (fix for wxRegConfig::SetPath("//foo")
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Jun 2001 11:44:07 +0000 (11:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Jun 2001 11:44:07 +0000 (11:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/regconf.cpp

index 5d8d70f97a357bad62dab6b2dc9641fcac10af7f..2fa8685006225b6723877d306ed7262b07f78751 100644 (file)
@@ -309,8 +309,12 @@ void wxRegConfig::SetPath(const wxString& strPath)
 
                         totalSlashes++;
                     }
 
                         totalSlashes++;
                     }
-                    //else: nothing to do, we squeeze several subseuquent
-                    //      slashes into one
+                    else // previous char was a slash too
+                    {
+                        // squeeze several subsequent slashes into one: i.e.
+                        // just ignore this one
+                        dst--;
+                    }
                 }
             }
             else // normal character
                 }
             }
             else // normal character