- for (j = r.Length() - 2; j >= 0 && r[j] != wxT('/') && r[j] != wxT(':'); j--) {}
- if (j >= 0 && r[j] != wxT(':'))
+ for (j = r.Length() - 2; j >= 0 && r.GetChar(j) != wxT('/') && r.GetChar(j) != wxT(':'); j--) {}
+ if (j >= 0 && r.GetChar(j) != wxT(':'))