Thomas Mullaly : urlmon: canonicalize_path_hierarchical should prepend a '/ ' if needed.
Module: wine Branch: master Commit: bc3f8bb0c7c47fa07ffada45fbe926b13f89d593 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bc3f8bb0c7c47fa07ffada45fb... Author: Thomas Mullaly <thomas.mullaly(a)gmail.com> Date: Thu Sep 30 22:47:01 2010 -0400 urlmon: canonicalize_path_hierarchical should prepend a '/' if needed. --- dlls/urlmon/uri.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/dlls/urlmon/uri.c b/dlls/urlmon/uri.c index 04482e1..726ee3f 100644 --- a/dlls/urlmon/uri.c +++ b/dlls/urlmon/uri.c @@ -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;
participants (1)
-
Alexandre Julliard