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
0d0f2067
Commit
0d0f2067
authored
Aug 14, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Pass window name as UNICODE_STRING to NtUserCreateWindowEx.
parent
0ad2db66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
win.c
dlls/user32/win.c
+9
-3
No files found.
dlls/user32/win.c
View file @
0d0f2067
...
...
@@ -300,9 +300,9 @@ static BOOL is_default_coord( int x )
*/
HWND
WIN_CreateWindowEx
(
CREATESTRUCTW
*
cs
,
LPCWSTR
className
,
HINSTANCE
module
,
BOOL
unicode
)
{
UNICODE_STRING
class
,
window_name
;
HWND
hwnd
,
top_child
=
0
;
MDICREATESTRUCTW
mdi_cs
;
UNICODE_STRING
class
;
CBT_CREATEWNDW
cbtc
;
WNDCLASSEXW
info
;
HMENU
menu
;
...
...
@@ -399,15 +399,21 @@ HWND WIN_CreateWindowEx( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE module,
}
}
if
(
unicode
||
!
cs
->
lpszName
)
RtlInitUnicodeString
(
&
window_name
,
cs
->
lpszName
);
else
if
(
!
RtlCreateUnicodeStringFromAsciiz
(
&
window_name
,
(
const
char
*
)
cs
->
lpszName
))
return
0
;
menu
=
cs
->
hMenu
;
if
(
!
menu
&&
info
.
lpszMenuName
&&
(
cs
->
style
&
(
WS_CHILD
|
WS_POPUP
))
!=
WS_CHILD
)
menu
=
LoadMenuW
(
cs
->
hInstance
,
info
.
lpszMenuName
);
cbtc
.
lpcs
=
cs
;
hwnd
=
NtUserCreateWindowEx
(
cs
->
dwExStyle
,
&
class
,
NULL
,
NULL
,
cs
->
style
,
cs
->
x
,
cs
->
y
,
cs
->
cx
,
cs
->
cy
,
cs
->
hwndParent
,
menu
,
module
,
hwnd
=
NtUserCreateWindowEx
(
cs
->
dwExStyle
,
&
class
,
NULL
,
&
window_name
,
cs
->
style
,
cs
->
x
,
cs
->
y
,
cs
->
cx
,
cs
->
cy
,
cs
->
hwndParent
,
menu
,
module
,
cs
->
lpCreateParams
,
0
,
&
cbtc
,
0
,
!
unicode
);
if
(
!
hwnd
&&
menu
&&
menu
!=
cs
->
hMenu
)
NtUserDestroyMenu
(
menu
);
if
(
!
unicode
)
RtlFreeUnicodeString
(
&
window_name
);
return
hwnd
;
}
...
...
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