From: Vadim Zeitlin Date: Fri, 15 Jun 2001 11:44:07 +0000 (+0000) Subject: applied patch 430963 (fix for wxRegConfig::SetPath("//foo") X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eaac8805cd0fc233aeb0fc40a31bf8d8e03bf59c?ds=sidebyside applied patch 430963 (fix for wxRegConfig::SetPath("//foo") git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/regconf.cpp b/src/msw/regconf.cpp index 5d8d70f97a..2fa8685006 100644 --- a/src/msw/regconf.cpp +++ b/src/msw/regconf.cpp @@ -309,8 +309,12 @@ void wxRegConfig::SetPath(const wxString& strPath) 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