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
e96f03a1
Commit
e96f03a1
authored
Mar 01, 2006
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Mar 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user: Fix uninitialized rectangle in menu arrow painting.
parent
af9288d5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
menu.c
dlls/user/menu.c
+5
-7
No files found.
dlls/user/menu.c
View file @
e96f03a1
...
...
@@ -1375,6 +1375,10 @@ static void MENU_DrawMenuItem( HWND hwnd, HMENU hmenu, HWND hwndOwner, HDC hdc,
SetBkColor
(
hdc
,
GetSysColor
(
bkgnd
)
);
}
TRACE
(
"rect=%s
\n
"
,
wine_dbgstr_rect
(
&
lpitem
->
rect
));
rect
=
lpitem
->
rect
;
MENU_AdjustMenuItemRect
(
MENU_GetMenu
(
hmenu
),
&
rect
);
if
(
lpitem
->
fType
&
MF_OWNERDRAW
)
{
/*
...
...
@@ -1399,8 +1403,7 @@ static void MENU_DrawMenuItem( HWND hwnd, HMENU hmenu, HWND hwndOwner, HDC hdc,
dis
.
itemAction
=
odaction
;
/* ODA_DRAWENTIRE | ODA_SELECT | ODA_FOCUS; */
dis
.
hwndItem
=
(
HWND
)
hmenu
;
dis
.
hDC
=
hdc
;
dis
.
rcItem
=
lpitem
->
rect
;
MENU_AdjustMenuItemRect
(
MENU_GetMenu
(
hmenu
),
&
dis
.
rcItem
);
dis
.
rcItem
=
rect
;
TRACE
(
"Ownerdraw: owner=%p itemID=%d, itemState=%d, itemAction=%d, "
"hwndItem=%p, hdc=%p, rcItem=%s
\n
"
,
hwndOwner
,
dis
.
itemID
,
dis
.
itemState
,
dis
.
itemAction
,
dis
.
hwndItem
,
...
...
@@ -1413,13 +1416,8 @@ static void MENU_DrawMenuItem( HWND hwnd, HMENU hmenu, HWND hwndOwner, HDC hdc,
return
;
}
TRACE
(
"rect=%s
\n
"
,
wine_dbgstr_rect
(
&
lpitem
->
rect
));
if
(
menuBar
&&
(
lpitem
->
fType
&
MF_SEPARATOR
))
return
;
rect
=
lpitem
->
rect
;
MENU_AdjustMenuItemRect
(
MENU_GetMenu
(
hmenu
),
&
rect
);
if
(
lpitem
->
fState
&
MF_HILITE
)
{
if
(
flat_menu
)
...
...
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