Module: wine Branch: master Commit: bc0610646887e5a339a83ea21a94fc4ed6155adc URL: http://source.winehq.org/git/wine.git/?a=commit;h=bc0610646887e5a339a83ea21a...
Author: Rob Shearman rob@codeweavers.com Date: Wed May 23 19:06:00 2007 +0100
shlwapi: Add a slash to the URL if there is no path component.
---
dlls/shlwapi/url.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c index 0991dad..1aa6d07 100644 --- a/dlls/shlwapi/url.c +++ b/dlls/shlwapi/url.c @@ -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;}