Fix decoding printf format in case the field width specifier is a '*'.
diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c index 4caf5a7..89e572d 100644 --- a/dlls/msvcrt/wcs.c +++ b/dlls/msvcrt/wcs.c
@@ -399,6 +399,7 @@ LPCWSTR q, p = format; pf_flags flags; + TRACE("format is %s\n",debugstr_w(format)); while (*p) { q = strchrW( p, '%' ); @@ -454,8 +455,11 @@ /* deal with the field width specifier */ flags.FieldLength = 0; - if( *p == '*' ) + if( *p == '*' ) + { flags.FieldLength = va_arg( valist, int ); + p++; + } else while( isdigit(*p) ) { flags.FieldLength *= 10;