mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[WIN32K:NTUSER]
- Fix range check in NtUserSetWindowFNID. Patch by Samuel Serapion. - Update comment on an old hack CORE-7212 #resolve svn path=/trunk/; revision=67228
This commit is contained in:
parent
d9c9bf096c
commit
87424486ea
1 changed files with 4 additions and 3 deletions
|
@ -3992,9 +3992,10 @@ NtUserSetWindowFNID(HWND hWnd,
|
|||
|
||||
// From user land we only set these.
|
||||
if (fnID != FNID_DESTROY)
|
||||
{ // Hacked so we can mark desktop~!
|
||||
if ( (/*(fnID < FNID_BUTTON)*/ (fnID < FNID_FIRST) && (fnID > FNID_GHOST)) ||
|
||||
Wnd->fnid != 0 )
|
||||
{
|
||||
/* HACK: The minimum should be FNID_BUTTON, but menu code relies on this */
|
||||
if (fnID < FNID_FIRST || fnID > FNID_GHOST ||
|
||||
Wnd->fnid != 0)
|
||||
{
|
||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
RETURN( FALSE);
|
||||
|
|
Loading…
Reference in a new issue