- // If the path starts with a slash, we need the first
- // dir entry to be an empty for later reassembly.
- if (first || !token.IsEmpty())
+ // If the path starts with a slash (or two for a network path),
+ // we need the first dir entry to be an empty for later reassembly.
+ if ((i < 2) || !token.IsEmpty())