Skip to content

Instantly share code, notes, and snippets.

@sschroe
Created April 23, 2019 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sschroe/963f1d7aa3fc366e155e5ac6bc84cc71 to your computer and use it in GitHub Desktop.
Save sschroe/963f1d7aa3fc366e155e5ac6bc84cc71 to your computer and use it in GitHub Desktop.
diff --git a/dlls/urlmon/uri.c b/dlls/urlmon/uri.c
index 92978dc53f..e9f4afcc63 100644
--- a/dlls/urlmon/uri.c
+++ b/dlls/urlmon/uri.c
@@ -6418,7 +6418,7 @@ static HRESULT merge_paths(parse_data *data, const WCHAR *base, DWORD base_len,
/* If not found, try finding the end of @xxx: */
if(end == base+base_len-1)
end = *base == '@' ? memchr(base, ':', base_len) : NULL;
- }else {
+ }else if (*base != '/'){
/* Find the characters that will be copied over from the base path. */
end = memrchrW(base, '/', base_len);
if(!end && data->scheme_type == URL_SCHEME_FILE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment