Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
05aeaf15
Commit
05aeaf15
authored
Jul 08, 2001
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 08, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some argument validation to SetMenuItemInfoA, so QT5 does not
corrupt its menus.
parent
2420fa98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
menu.c
controls/menu.c
+9
-0
No files found.
controls/menu.c
View file @
05aeaf15
...
...
@@ -4479,6 +4479,15 @@ static BOOL SetMenuItemInfo_common(MENUITEM * menu,
BOOL
WINAPI
SetMenuItemInfoA
(
HMENU
hmenu
,
UINT
item
,
BOOL
bypos
,
const
MENUITEMINFOA
*
lpmii
)
{
if
((
lpmii
->
fType
&
(
MF_HILITE
|
MF_POPUP
))
||
(
lpmii
->
fState
))
{
/* QuickTime does pass invalid data into SetMenuItemInfo.
* do some of the checks Windows does.
*/
WARN
(
"Bad masks for type (0x%08x) or state (0x%08x)
\n
"
,
lpmii
->
fType
,
lpmii
->
fState
);
return
FALSE
;
}
return
SetMenuItemInfo_common
(
MENU_FindItem
(
&
hmenu
,
&
item
,
bypos
?
MF_BYPOSITION
:
0
),
(
const
MENUITEMINFOW
*
)
lpmii
,
FALSE
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment