Bug fix in GetLen.

This commit is contained in:
Eric Pouech 1999-04-18 12:16:22 +00:00 committed by Alexandre Julliard
parent c1d1cfe976
commit b3c7f84563
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ static UINT WPRINTF_GetLen( WPRINTF_FORMAT *format, WPRINTF_DATA *arg,
case WPR_STRING:
if (!arg->lpcstr_view) arg->lpcstr_view = null_stringA;
for (len = 0; !format->precision || (len < format->precision); len++)
if (!arg->lpcstr_view + len) break;
if (!*(arg->lpcstr_view + len)) break;
if (len > maxlen) len = maxlen;
return (format->precision = len);
case WPR_WSTRING: