From eaac8805cd0fc233aeb0fc40a31bf8d8e03bf59c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 15 Jun 2001 11:44:07 +0000 Subject: [PATCH] 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 --- src/msw/regconf.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.47.2