From 88e4ef1d91987d8eae86a1855aa16033ab0c4f4b Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 30 Dec 2010 03:03:45 +0000 Subject: [PATCH] [Win32k] - NtUserSetWindowFNID, sets user client side window function Ids, expands to ghost. svn path=/trunk/; revision=50220 --- reactos/subsystems/win32/win32k/ntuser/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/window.c b/reactos/subsystems/win32/win32k/ntuser/window.c index e8f98f21b6d..4d978038e3f 100644 --- a/reactos/subsystems/win32/win32k/ntuser/window.c +++ b/reactos/subsystems/win32/win32k/ntuser/window.c @@ -3887,9 +3887,10 @@ NtUserSetWindowFNID(HWND hWnd, // From user land we only set these. if (fnID != FNID_DESTROY) { - if ( ((fnID < FNID_BUTTON) && (fnID > FNID_IME)) || + if ( ((fnID < FNID_BUTTON) && (fnID > FNID_GHOST)) || Wnd->fnid != 0 ) { + EngSetLastError(ERROR_INVALID_PARAMETER); RETURN( FALSE); } }