Reduce noisy warning in richedit.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
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);
 }

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux