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
81fb745e
Commit
81fb745e
authored
Dec 13, 2017
by
Martin Payne
Committed by
Alexandre Julliard
Dec 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user.exe16: Fix handling of 16-bit HBITMAPs in InsertMenu16.
Signed-off-by:
Martin Payne
<
development@martinpayne.me.uk
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b9f32e16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
user.c
dlls/user.exe16/user.c
+4
-0
No files found.
dlls/user.exe16/user.c
View file @
81fb745e
...
...
@@ -2405,6 +2405,10 @@ BOOL16 WINAPI InsertMenu16( HMENU16 hMenu, UINT16 pos, UINT16 flags,
if
((
pos
==
(
UINT16
)
-
1
)
&&
(
flags
&
MF_BYPOSITION
))
pos32
=
(
UINT
)
-
1
;
if
(
IS_MENU_STRING_ITEM
(
flags
)
&&
data
)
return
InsertMenuA
(
HMENU_32
(
hMenu
),
pos32
,
flags
,
id
,
MapSL
(
data
)
);
/* If "data" is an HBITMAP, the high WORD will contain the application's DGROUP selector if the
* application cast (LPSTR)hBitmap rather than (LPSTR)(LONG)hBitmap. */
if
(
flags
&
MF_BITMAP
)
data
=
(
SEGPTR
)
HBITMAP_32
(
LOWORD
(
data
));
return
InsertMenuA
(
HMENU_32
(
hMenu
),
pos32
,
flags
,
id
,
(
LPSTR
)
data
);
}
...
...
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