On Tuesday 11 August 2009 13:38:24 Paul Chitescu wrote: > This is a quite ugly patch, adds unnecessary wstring copying. > > Why not: > > wsprintfW(buf, url_format, full_path, (index && index[0] == '/') ? empty : > slash, index); Oops, the other way around: (!index || index[0] == '/')