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

This commit is contained in:
Rob Shearman 2007-05-23 19:06:00 +01:00 committed by Alexandre Julliard
parent d82c456e5f
commit bc06106468

View File

@ -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;}