Module: wine Branch: master Commit: 62c257acca66584f5c86ae446e6b3f472d05d5b5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=62c257acca66584f5c86ae446e...
Author: Jacek Caban jacek@codeweavers.com Date: Tue Mar 13 18:42:34 2007 +0100
itss: Ignore trailing slash in ITSProtocol::Start.
---
dlls/itss/protocol.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/itss/protocol.c b/dlls/itss/protocol.c index 2094590..539e52b 100644 --- a/dlls/itss/protocol.c +++ b/dlls/itss/protocol.c @@ -194,12 +194,17 @@ static HRESULT WINAPI ITSProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl, }
object_name = p+2; + len = strlenW(object_name); + if(*object_name != '/' && *object_name != '\') { - int len = strlenW(object_name)+1; - memmove(object_name+1, object_name, len*sizeof(WCHAR)); + memmove(object_name+1, object_name, (len+1)*sizeof(WCHAR)); *object_name = '/'; + len++; }
+ if(object_name[len-1] == '/') + object_name[--len] = 0; + for(p=object_name; *p; p++) { if(*p == '\') *p = '/';