Alexandre Julliard : libwine: Ignore format modifiers 'h' and 'l' when formatting a string.

Alexandre Julliard julliard at winehq.org
Mon Jan 5 10:24:15 CST 2009


Module: wine
Branch: master
Commit: 52035af0e517f201612939fbcd7320dec5ab6246
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=52035af0e517f201612939fbcd7320dec5ab6246

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan  5 11:58:38 2009 +0100

libwine: Ignore format modifiers 'h' and 'l' when formatting a string.

---

 libs/wine/string.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libs/wine/string.c b/libs/wine/string.c
index b45de92..3c41019 100644
--- a/libs/wine/string.c
+++ b/libs/wine/string.c
@@ -324,6 +324,8 @@ static int format_string( WCHAR *buffer, size_t len, const char *format, const W
     }
     else max = strlenW(str);
 
+    if (*format == 'h' || *format == 'l') format++;
+
     assert( *format == 's' );
 
     if (!left_align && width > max)




More information about the wine-cvs mailing list