mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Bug fix in GetLen.
This commit is contained in:
parent
c1d1cfe976
commit
b3c7f84563
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user