mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user