Skip to content
Snippets Groups Projects
Commit b3c7f845 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard
Browse files

Bug fix in GetLen.

parent c1d1cfe9
No related branches found
Tags wine-20030318
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment