[ros-dev] [ros-diffs] [pschweitzer] 69683: [CRT] Fix NTDLL implementation of mbstowcs() and wcstombs() so that they return length in caracters and not in bytes. This fixes last failing *to* CRT apitests CORE-10390

Michael Fritscher michael at fritscher.net
Sun Oct 25 11:04:52 UTC 2015


Hi,

> Modified: trunk/reactos/lib/sdk/crt/string/mbstowcs_nt.c
> URL:
> http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/mbstowcs_nt.c?rev=69683&r1=69682&r2=69683&view=diff
> ==============================================================================
> --- trunk/reactos/lib/sdk/crt/string/mbstowcs_nt.c	[iso-8859-1] (original)
> +++ trunk/reactos/lib/sdk/crt/string/mbstowcs_nt.c	[iso-8859-1] Sun Oct 25
> 09:28:57 2015
> @@ -60,7 +60,7 @@
>  	if (!NT_SUCCESS(Status))
>  		return -1;
>
> -	return (size_t)Size;
> +	return (size_t)(Size / sizeof(wchar_t));;
>  }
>
>  /* EOF */

Tiny, not critical typo: Two semicolons ;-)

Best regards,
Michael Fritscher




More information about the Ros-dev mailing list