...
This compliant solution correctly calculates the number of bytes required to contain a copy of the wide string, including the terminating null wide character:
...
...
This compliant solution correctly calculates the number of bytes required to contain a copy of the wide string, including the terminating null wide character:
...