Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7a560493
Commit
7a560493
authored
Apr 08, 2006
by
Rein Klazes
Committed by
Alexandre Julliard
Apr 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Fix dereferencing a potential NULL pointer.
parent
5f4b4245
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
menu.c
dlls/user/menu.c
+16
-16
No files found.
dlls/user/menu.c
View file @
7a560493
...
@@ -1693,23 +1693,23 @@ static void MENU_DrawPopupMenu( HWND hwnd, HDC hdc, HMENU hmenu )
...
@@ -1693,23 +1693,23 @@ static void MENU_DrawPopupMenu( HWND hwnd, HDC hdc, HMENU hmenu )
else
else
DrawEdge
(
hdc
,
&
rect
,
EDGE_RAISED
,
BF_RECT
);
DrawEdge
(
hdc
,
&
rect
,
EDGE_RAISED
,
BF_RECT
);
menu
=
MENU_GetMenu
(
hmenu
);
if
(
(
menu
=
MENU_GetMenu
(
hmenu
)))
{
/* draw menu items */
/* draw menu items */
if
(
menu
&&
menu
->
nItems
)
if
(
menu
->
nItems
)
{
{
MENUITEM
*
item
;
MENUITEM
*
item
;
UINT
u
;
UINT
u
;
for
(
u
=
menu
->
nItems
,
item
=
menu
->
items
;
u
>
0
;
u
--
,
item
++
)
MENU_DrawMenuItem
(
hwnd
,
hmenu
,
menu
->
hwndOwner
,
hdc
,
item
,
menu
->
Height
,
FALSE
,
ODA_DRAWENTIRE
);
}
/* draw scroll arrows */
item
=
menu
->
items
;
if
(
menu
->
bScrolling
)
for
(
u
=
menu
->
nItems
;
u
>
0
;
u
--
,
item
++
)
MENU_DrawScrollArrows
(
menu
,
hdc
);
MENU_DrawMenuItem
(
hwnd
,
hmenu
,
menu
->
hwndOwner
,
hdc
,
item
,
menu
->
Height
,
FALSE
,
ODA_DRAWENTIRE
);
}
/* draw scroll arrows */
if
(
menu
->
bScrolling
)
MENU_DrawScrollArrows
(
menu
,
hdc
);
}
}
else
}
else
{
{
SelectObject
(
hdc
,
hPrevBrush
);
SelectObject
(
hdc
,
hPrevBrush
);
...
...
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