"Mike McCormack" mike@codeweavers.com wrote:
Thomas Weidenmueller wrote:
- sz = strlenW(fmt) + 1;
- sz = wcslen(fmt) + 1;
libc and wine may have differing interpretations of what wchar_t. Specifically, if -fshort-wchar is not used, wchar_t will be int, won't it?
You'd be better off using lstrlenW() than wcslen(), but that will be slow since it has an exception handler. Alexandre was talking about making an inline wine only version of lstrlenW() without the exception handler to solve that problem.
Or even better make strlenW resolve to wcslen when compiling under ReactOS.