msvcrt: Quiet a noisy FIXME

André Hentschel nerv at dawncrow.de
Tue Nov 1 17:00:56 CDT 2011


Could e.g. be seen with MSVC6
---
 dlls/msvcrt/printf.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/msvcrt/printf.h b/dlls/msvcrt/printf.h
index fa3bdef..5db4ed0 100644
--- a/dlls/msvcrt/printf.h
+++ b/dlls/msvcrt/printf.h
@@ -476,7 +476,10 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API
             int ch = pf_args(args_ctx, pos, VT_INT, valist).get_int;
 
             if((ch&0xff) != ch)
-                FIXME("multibyte characters printing not supported\n");
+            {
+                static BOOL fixme_once;
+                if(!fixme_once++) FIXME("multibyte characters printing not supported\n");
+            }
 
             i = FUNC_NAME(pf_handle_string)(pf_puts, puts_ctx, &ch, 1, &flags, locinfo);
         } else if(flags.Format == 'p') {
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list