Commit 62c257ac authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

itss: Ignore trailing slash in ITSProtocol::Start.

parent ff0a6136
......@@ -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 = '/';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment