Bug #321: msvcrt-vfprintf-3.diff
dmitry at baikal.ru
Tue Oct 29 05:45:54 CST 2002
"Jaco Greeff" <jaco at puxedo.org> wrote:
> Ok, try number 3. I've made the changes as requested
> * Get result length before allocating and copying with WideCharToMultiByte;
> * Make intentions clear on strncat, replaced with strcat
> * Removed CHAR castings to get the WCHAR formatting character.
> * Fixes as requested by Dimitri and included in previous version;
You are still using L prefix and redundant (WCHAR) casts.
if (*szFmt == (WCHAR)L'-')
case (WCHAR)L'd': ADD_FORMAT_TYPE(VFMT_INTEGER, "d");
if (*szFmt == '-')
case 'd': ADD_FORMAT_TYPE(VFMT_INTEGER, "d");
will do the job.
More information about the wine-devel