\ for directory separator

This commit is contained in:
Kelvin Sherlock 2014-09-10 21:55:20 -04:00
parent a8fd9c9a96
commit d2642a63d5
1 changed files with 3 additions and 1 deletions

4
smb.c
View File

@ -1187,7 +1187,9 @@ static uint16_t *file_path(const char *url, const URLComponents *components)
for (i = 0; i < path.length; ++i)
{
rv[i + 1] = url[path.location++];
uint16_t c = url[path.location++];
if (c == '/') c = '\\';
rv[i + 1] = c;
}
return rv;