kernel32: Print a FIXME only once in LCMapStringEx (v2)

Louis Lenders xerox.xerox2000x at gmail.com
Tue Apr 26 05:14:04 CDT 2016


v2: corrected order if-statements

While running several .net (wpf) apps, the console keeps getting flooded
with mainly 2 fixme's. This is one of them, see for example
https://bugs.winehq.org/attachment.cgi?id=54106
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20160426/326a21ad/attachment.html>
-------------- next part --------------
From 6a07c5d7ed39f2544d67814e080ffc560143f851 Mon Sep 17 00:00:00 2001
From: Louis Lenders <xerox.xerox2000x at gmail.com>
Date: Tue, 26 Apr 2016 12:08:54 +0200
Subject: [PATCH] kernel32: Print a FIXME only once in LCMapStringEx

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

diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index 7418da9..2f61782 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -2974,10 +2974,14 @@ INT WINAPI LCMapStringEx(LPCWSTR name, DWORD flags, LPCWSTR src, INT srclen, LPW
                          LPNLSVERSIONINFO version, LPVOID reserved, LPARAM lparam)
 {
     LPWSTR dst_ptr;
+    static int once;
 
     if (version) FIXME("unsupported version structure %p\n", version);
     if (reserved) FIXME("unsupported reserved pointer %p\n", reserved);
-    if (lparam) FIXME("unsupported lparam %lx\n", lparam);
+    if (lparam)
+    {
+        if (!once++) FIXME("unsupported lparam %lx\n", lparam);
+    }
 
     if (!src || !srclen || dstlen < 0)
     {
-- 
1.9.1



More information about the wine-patches mailing list