X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/442d08ce743780b40895848a7d07c083e327aa2f..29149a64916d6fdc53e445adca9ef83bc58fb6c3:/src/msw/regconf.cpp?ds=sidebyside 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