[PATCH 4/6] shlwapi: Add a slash to the URL if there is no path
component.
Robert Shearman
rob at codeweavers.com
Wed May 23 13:06:00 CDT 2007
---
dlls/shlwapi/url.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
-------------- next part --------------
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
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;}
More information about the wine-patches
mailing list