Commit bc061064 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

shlwapi: Add a slash to the URL if there is no path component.

parent d82c456e
......@@ -409,6 +409,8 @@ HRESULT WINAPI UrlCanonicalizeW(LPCWSTR pszUrl, LPWSTR pszCanonicalized,
while(isalnumW(*wk1) || (*wk1 == L'-') || (*wk1 == L'.') || (*wk1 == ':'))
*wk2++ = *wk1++;
state = 5;
if (!*wk1)
*wk2++ = slash;
break;
case 5:
if (*wk1 != '/' && *wk1 != '\\') {state = 3; break;}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment