urlmon: canonicalize_path_hierarchical should prepend a '/' if needed.

This commit is contained in:
Thomas Mullaly 2010-09-30 22:47:01 -04:00 committed by Alexandre Julliard
parent e1280919b8
commit bc3f8bb0c7
1 changed files with 7 additions and 0 deletions

View File

@ -2921,6 +2921,13 @@ static BOOL canonicalize_path_hierarchical(const parse_data *data, Uri *uri,
}
}
if(!is_file && *(data->path) && *(data->path) != '/') {
/* Prepend a '/' to the path if it doesn't have one. */
if(!computeOnly)
uri->canon_uri[uri->canon_len] = '/';
++uri->canon_len;
}
for(; ptr < data->path+data->path_len; ++ptr) {
if(*ptr == '%') {
const WCHAR *tmp = ptr;