Reduce noisy warning in richedit.c

Dan Kegel dank at kegel.com
Tue Jan 28 23:24:09 CST 2003


These FIXMEs were getting annoying, so
I copied the idiom used in lots of other files
that process windows messages.  Hope I got it right.

(There seems to be some disagreement as to whether
an unknown message is an ERR or a FIXME.  I've left
this one a FIXME.)

Changelog:
	* dlls/richedit/richedit.c: only warn if message is >= WM_USER && < WM_APP
Copyright: public domain, since this is a trivial patch

-- 
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
-------------- next part --------------
Index: dlls/richedit/richedit.c
===================================================================
RCS file: /home/wine/wine/dlls/richedit/richedit.c,v
retrieving revision 1.26
diff -u -p -u -r1.26 richedit.c
--- dlls/richedit/richedit.c	14 Jan 2003 23:43:42 -0000	1.26
+++ dlls/richedit/richedit.c	29 Jan 2003 04:52:25 -0000
@@ -714,8 +714,10 @@ static LRESULT WINAPI RICHED32_WindowPro
 
     }
 
-    FIXME("Unknown message 0x%x Passed to default hwnd=%p, wParam=%08x, lParam=%08x\n",
-           uMsg, hwnd, (UINT)wParam, (UINT)lParam);
+    if ((uMsg >= WM_USER) && (uMsg < WM_APP)) {
+	FIXME("Unknown message 0x%x Passed to default hwnd=%p, wParam=%08x, lParam=%08x\n",
+	       uMsg, hwnd, (UINT)wParam, (UINT)lParam);
+    }
 
    return DefWindowProcA( hwnd,uMsg,wParam,lParam);
 }


More information about the wine-patches mailing list