Author: weiden
Date: Mon Jul 30 19:16:15 2007
New Revision: 28046
URL:
http://svn.reactos.org/svn/reactos?rev=28046&view=rev
Log:
Only return valid values from WM_NOTIFYFORMAT with NF_QUERY in DefWindowProc
Modified:
trunk/reactos/dll/win32/user32/windows/defwnd.c
Modified: trunk/reactos/dll/win32/user32/windows/defwnd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/d…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/defwnd.c (original)
+++ trunk/reactos/dll/win32/user32/windows/defwnd.c Mon Jul 30 19:16:15 2007
@@ -1493,14 +1493,9 @@
case WM_NOTIFYFORMAT:
{
- if (IsWindowUnicode(hWnd))
- {
- return(NFR_UNICODE);
- }
- else
- {
- return(NFR_ANSI);
- }
+ if (lParam == NF_QUERY)
+ return IsWindowUnicode(hWnd) ? NFR_UNICODE : NFR_ANSI;
+ break;
}
case WM_SETICON: