Commit b3c7f845 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Bug fix in GetLen.

parent c1d1cfe9
...@@ -216,7 +216,7 @@ static UINT WPRINTF_GetLen( WPRINTF_FORMAT *format, WPRINTF_DATA *arg, ...@@ -216,7 +216,7 @@ static UINT WPRINTF_GetLen( WPRINTF_FORMAT *format, WPRINTF_DATA *arg,
case WPR_STRING: case WPR_STRING:
if (!arg->lpcstr_view) arg->lpcstr_view = null_stringA; if (!arg->lpcstr_view) arg->lpcstr_view = null_stringA;
for (len = 0; !format->precision || (len < format->precision); len++) 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; if (len > maxlen) len = maxlen;
return (format->precision = len); return (format->precision = len);
case WPR_WSTRING: case WPR_WSTRING:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment