usp10: Limit trace length in dump_types.

This commit is contained in:
Piotr Caban 2014-07-12 11:56:56 +02:00 committed by Alexandre Julliard
parent f325bf7458
commit 6d7ce98fec
1 changed files with 7 additions and 2 deletions

View File

@ -146,10 +146,15 @@ static const char debug_type[][4] =
static inline void dump_types(const char* header, WORD *types, int start, int end)
{
int i;
int i, len = 0;
TRACE("%s:",header);
for (i = start; i< end; i++)
for (i = start; i < end && len < 200; i++)
{
TRACE(" %s",debug_type[types[i]]);
len += strlen(debug_type[types[i]])+1;
}
if (i != end)
TRACE("...");
TRACE("\n");
}