msvcrt: invoke invalid_handler in _wcscpy_s

Piotr Caban piotr.caban at gmail.com
Mon Aug 5 06:09:32 CDT 2013


On 08/02/13 20:08, Daniel Lehman wrote:
> +    if(!MSVCRT_CHECK_PMT(wcDest))
> +    {
> +        *MSVCRT__errno() = MSVCRT_EINVAL;
>           return MSVCRT_EINVAL;
> +    }
The MSVCRT_CHECK_PMT macro sets the errno value. There's also 
MSVCRT_CHECK_PMT_ERR macro if you need to set different error.



More information about the wine-devel mailing list