nextUrl is of type "WCHAR *" so don't multiply the length by "sizeof(WCHAR)" when incrementing the pointer.