shlwapi: Add a slash to the URL if there is no path component.
This commit is contained in:
parent
d82c456e5f
commit
bc06106468
|
@ -409,6 +409,8 @@ HRESULT WINAPI UrlCanonicalizeW(LPCWSTR pszUrl, LPWSTR pszCanonicalized,
|
||||||
while(isalnumW(*wk1) || (*wk1 == L'-') || (*wk1 == L'.') || (*wk1 == ':'))
|
while(isalnumW(*wk1) || (*wk1 == L'-') || (*wk1 == L'.') || (*wk1 == ':'))
|
||||||
*wk2++ = *wk1++;
|
*wk2++ = *wk1++;
|
||||||
state = 5;
|
state = 5;
|
||||||
|
if (!*wk1)
|
||||||
|
*wk2++ = slash;
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
if (*wk1 != '/' && *wk1 != '\\') {state = 3; break;}
|
if (*wk1 != '/' && *wk1 != '\\') {state = 3; break;}
|
||||||
|
|
Loading…
Reference in New Issue