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
bfcfe437
Commit
bfcfe437
authored
Dec 17, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Move loading of the 16-bit window menu to CreateWindowEx16.
parent
aabe5f15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
win.c
dlls/user32/win.c
+11
-6
No files found.
dlls/user32/win.c
View file @
bfcfe437
...
...
@@ -1282,14 +1282,10 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, LPCWSTR className, HINSTANCE
}
else
{
LPC
STR
menuName
=
(
LPCSTR
)
GetClassLongPtrA
(
hwnd
,
GCLP_MENUNAME
);
LPC
WSTR
menuName
=
(
LPCWSTR
)
GetClassLongPtrW
(
hwnd
,
GCLP_MENUNAME
);
if
(
menuName
)
{
if
(
!
cs
->
hInstance
||
HIWORD
(
cs
->
hInstance
))
cs
->
hMenu
=
LoadMenuA
(
cs
->
hInstance
,
menuName
);
else
cs
->
hMenu
=
HMENU_32
(
LoadMenu16
(
HINSTANCE_16
(
cs
->
hInstance
),
menuName
));
cs
->
hMenu
=
LoadMenuW
(
cs
->
hInstance
,
menuName
);
if
(
cs
->
hMenu
)
MENU_SetMenu
(
hwnd
,
cs
->
hMenu
);
}
}
...
...
@@ -1489,6 +1485,15 @@ HWND16 WINAPI CreateWindowEx16( DWORD exStyle, LPCSTR className,
/* map to module handle */
if
(
instance
)
instance
=
GetExePtr
(
instance
);
/* load the menu */
if
(
!
menu
&&
(
style
&
(
WS_CHILD
|
WS_POPUP
))
!=
WS_CHILD
)
{
WNDCLASSA
class
;
if
(
GetClassInfoA
(
HINSTANCE_32
(
instance
),
className
,
&
class
))
cs
.
hMenu
=
HMENU_32
(
LoadMenu16
(
instance
,
class
.
lpszMenuName
));
}
if
(
!
IS_INTRESOURCE
(
className
))
{
WCHAR
bufferW
[
256
];
...
...
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