mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:25:48 +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.
|
// From user land we only set these.
|
||||||
if (fnID != FNID_DESTROY)
|
if (fnID != FNID_DESTROY)
|
||||||
{ // Hacked so we can mark desktop~!
|
{
|
||||||
if ( (/*(fnID < FNID_BUTTON)*/ (fnID < FNID_FIRST) && (fnID > FNID_GHOST)) ||
|
/* HACK: The minimum should be FNID_BUTTON, but menu code relies on this */
|
||||||
Wnd->fnid != 0 )
|
if (fnID < FNID_FIRST || fnID > FNID_GHOST ||
|
||||||
|
Wnd->fnid != 0)
|
||||||
{
|
{
|
||||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||||
RETURN( FALSE);
|
RETURN( FALSE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue