Module: wine Branch: refs/heads/master Commit: dbb455e7ab23d61a74c9c6bc5b39a607388eba2d URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=dbb455e7ab23d61a74c9c6bc...
Author: Alexandre Julliard julliard@winehq.org Date: Wed May 24 17:16:42 2006 +0200
libwine: Don't use libwine_unicode functions.
---
libs/wine/debug.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/libs/wine/debug.c b/libs/wine/debug.c index 03003b9..6f4167f 100644 --- a/libs/wine/debug.c +++ b/libs/wine/debug.c @@ -29,7 +29,6 @@ #include <ctype.h>
#include "wine/debug.h" #include "wine/library.h" -#include "wine/unicode.h"
static const char * const debug_classes[] = { "fixme", "err", "warn", "trace" };
@@ -324,7 +323,12 @@ static const char *default_dbgstr_wn( co sprintf( res, "#%04x", LOWORD(str) ); return res; } - if (n == -1) n = strlenW(str); + if (n == -1) + { + const WCHAR *end = str; + while (*end) end++; + n = end - str; + } if (n < 0) n = 0; size = 12 + min( 300, n * 5 ); dst = res = funcs.get_temp_buffer( n * 5 + 7 );