kernel32: Print a FIXME only once in LCMapStringEx
Louis Lenders
xerox.xerox2000x at gmail.com
Mon Apr 25 09:58:55 CDT 2016
Hi, 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/20160425/ab3493a6/attachment.html>
-------------- next part --------------
From 176848a4da202475f9496255abe12ef91e975d46 Mon Sep 17 00:00:00 2001
From: Louis Lenders <xerox.xerox2000x at gmail.com>
Date: Mon, 25 Apr 2016 16:50:24 +0200
Subject: [PATCH 1/2] kernel32: Print a FIXME only once in LCMapStringEx
Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
---
dlls/kernel32/locale.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index 7418da9..8901870 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -2974,10 +2974,13 @@ 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 (!once++)
+ if (lparam) FIXME("unsupported lparam %lx\n", lparam);
if (!src || !srclen || dstlen < 0)
{
--
1.9.1
More information about the wine-patches
mailing list