Moreover, according to MSDN, wcscpy() in C++ is a template that doesn't need the length passed, so this shouldn't make actually anything worse.