On Tue, May 23, 2000 at 07:41:08PM -0700, Alexandre Julliard wrote:
> lstrcpynA/W are better but in most cases the length is
> computed wrong, so we'll need to go through them all anyway so we
> might as well replace them with the right ones.

It's not clear to me what the n should mean here.  Should it refer to
the size of the dst buffer in bytes like a
WideCharToMultiByte(CP_ACP,0,src,-1,dst,n,NULL,NULL);
which is useful for filling out fixed sized strings in structures for example,
or should n be the number of chars to copy like
len = WideCharToMultiByte(CP_ACP,src,n,NULL,0,NULL,NULL);
WideCharToMultiByte(CP_ACP,src,n,dst,len,NULL,NULL);

This probably illustrates why we should use WCTMB directly in the first place.

Huw.
-- 
   Dr. Huw D M Davies              | Clarendon Laboratory
   [EMAIL PROTECTED]      | Parks Road
   Tel: +44 1865 272390            | Oxford OX1 3PU
   Fax: +44 1865 272400            | UK

Reply via email to