"Dmitry Timoshkov" <[EMAIL PROTECTED]> writes:

> Did I understand you correct and all references to a bunch of
> lstrcpyW/A/W, lstrcpynA/W/A, HEAP_strdupW/A/W everywhere in Wine should
> be removed and replaced by WideCharToMultiByte/MultiByteToWideChar?

lstrcpyA/W at least, yes, because they should take into account the
buffer size. 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.

> I thought it would be easier to just convert them to the macros
> and only then gradually move to WideCharToMultiByte/MultiByteToWideChar.

I don't think converting them to macros gains anything. We can just
leave them as functions and move gradually to the right APIs.

-- 
Alexandre Julliard
[EMAIL PROTECTED]

Reply via email to