The PAL was incorrectly using sizeof(WCHAR) to decide the max number of UTF-8 bytes that a single UTF-16 character could require when converting to UTF-8 in the CreateProcess implementation. This switches to using WideCharToMultiByte to calculate the required length.
The PAL was incorrectly using
sizeof(WCHAR)
to decide the max number of UTF-8 bytes that a single UTF-16 character could require when converting to UTF-8 in the CreateProcess implementation. This switches to usingWideCharToMultiByte
to calculate the required length.