Piotr Caban : usp10: Limit trace length in dump_types.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 14 14:52:32 CDT 2014
Module: wine
Branch: master
Commit: 6d7ce98fec4bbdff86bd901e91e5636bd6680bcf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6d7ce98fec4bbdff86bd901e91e5636bd6680bcf
Author: Piotr Caban <piotr at codeweavers.com>
Date: Sat Jul 12 11:56:56 2014 +0200
usp10: Limit trace length in dump_types.
---
dlls/usp10/bidi.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/usp10/bidi.c b/dlls/usp10/bidi.c
index 63ffa6a..2926454 100644
--- a/dlls/usp10/bidi.c
+++ b/dlls/usp10/bidi.c
@@ -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");
}
More information about the wine-cvs
mailing list