dwrite: Print a FIXME only once in dwritetextanalyzer_AnalyzeNumberSubstitution

Louis Lenders xerox.xerox2000x at gmail.com
Mon Apr 25 10:02:27 CDT 2016


Hi, while running several .net (wpf) apps, the console keeps getting
flooded with mainly 2 fixme's. This is the other one.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20160425/44ff6416/attachment.html>
-------------- next part --------------
From 5c5e0a8c27a7fc11ac407b6e565b84e1e1832984 Mon Sep 17 00:00:00 2001
From: Louis Lenders <xerox.xerox2000x at gmail.com>
Date: Mon, 25 Apr 2016 16:51:36 +0200
Subject: [PATCH 2/2] dwrite: Print a FIXME only once in
 dwritetextanalyzer_AnalyzeNumberSubstitution

Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
---
 dlls/dwrite/analyzer.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dlls/dwrite/analyzer.c b/dlls/dwrite/analyzer.c
index c7ef039..90b53ad 100644
--- a/dlls/dwrite/analyzer.c
+++ b/dlls/dwrite/analyzer.c
@@ -867,7 +867,10 @@ done:
 static HRESULT WINAPI dwritetextanalyzer_AnalyzeNumberSubstitution(IDWriteTextAnalyzer2 *iface,
     IDWriteTextAnalysisSource* source, UINT32 position, UINT32 length, IDWriteTextAnalysisSink* sink)
 {
-    FIXME("(%p %u %u %p): stub\n", source, position, length, sink);
+    static int once;
+
+    if (!once++)
+        FIXME("(%p %u %u %p): stub\n", source, position, length, sink);
     return S_OK;
 }
 
-- 
1.9.1



More information about the wine-patches mailing list