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
aab85d72
Commit
aab85d72
authored
Jan 15, 2001
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 15, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize MENUITEMINFO structure before calling GetMenuItemInfo.
parent
50af4a38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mdi.c
windows/mdi.c
+4
-3
No files found.
windows/mdi.c
View file @
aab85d72
...
...
@@ -1100,7 +1100,7 @@ static BOOL MDI_AugmentFrameMenu( MDICLIENTINFO* ci, WND *frame,
*/
static
BOOL
MDI_RestoreFrameMenu
(
WND
*
frameWnd
,
HWND
hChild
)
{
MENUITEMINFO
A
menuInfo
;
MENUITEMINFO
W
menuInfo
;
INT
nItems
=
GetMenuItemCount
(
frameWnd
->
wIDmenu
)
-
1
;
UINT
iId
=
GetMenuItemID
(
frameWnd
->
wIDmenu
,
nItems
)
;
...
...
@@ -1114,10 +1114,11 @@ static BOOL MDI_RestoreFrameMenu( WND *frameWnd, HWND hChild )
* Remove the system menu, If that menu is the icon of the window
* as it is in win95, we have to delete the bitmap.
*/
menuInfo
.
cbSize
=
sizeof
(
MENUITEMINFOA
);
memset
(
&
menuInfo
,
0
,
sizeof
(
menuInfo
));
menuInfo
.
cbSize
=
sizeof
(
menuInfo
);
menuInfo
.
fMask
=
MIIM_DATA
|
MIIM_TYPE
;
GetMenuItemInfo
A
(
frameWnd
->
wIDmenu
,
GetMenuItemInfo
W
(
frameWnd
->
wIDmenu
,
0
,
TRUE
,
&
menuInfo
);
...
...
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