Thomas Mullaly : urlmon: canonicalize_path_hierarchical should prepend a '/ ' if needed.
Alexandre Julliard
julliard at winehq.org
Mon Oct 4 11:03:59 CDT 2010
Module: wine
Branch: master
Commit: bc3f8bb0c7c47fa07ffada45fbe926b13f89d593
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bc3f8bb0c7c47fa07ffada45fbe926b13f89d593
Author: Thomas Mullaly <thomas.mullaly at 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;
More information about the wine-cvs
mailing list