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
354e999c
Commit
354e999c
authored
Feb 28, 2023
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Avoid calling RtlInitUnicodeString on a static constant.
parent
129d8616
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
mouse.c
dlls/winex11.drv/mouse.c
+1
-2
window.c
dlls/winex11.drv/window.c
+1
-2
No files found.
dlls/winex11.drv/mouse.c
View file @
354e999c
...
...
@@ -374,7 +374,7 @@ static BOOL grab_clipping_window( const RECT *clip )
#ifdef HAVE_X11_EXTENSIONS_XINPUT2_H
static
const
WCHAR
messageW
[]
=
{
'M'
,
'e'
,
's'
,
's'
,
'a'
,
'g'
,
'e'
,
0
};
struct
x11drv_thread_data
*
data
=
x11drv_thread_data
();
UNICODE_STRING
class_name
;
UNICODE_STRING
class_name
=
RTL_CONSTANT_STRING
(
messageW
)
;
Window
clip_window
;
HWND
msg_hwnd
=
0
;
POINT
pos
;
...
...
@@ -385,7 +385,6 @@ static BOOL grab_clipping_window( const RECT *clip )
if
(
!
data
)
return
FALSE
;
if
(
!
(
clip_window
=
init_clip_window
()))
return
TRUE
;
RtlInitUnicodeString
(
&
class_name
,
messageW
);
if
(
!
(
msg_hwnd
=
NtUserCreateWindowEx
(
0
,
&
class_name
,
&
class_name
,
NULL
,
0
,
0
,
0
,
0
,
0
,
HWND_MESSAGE
,
0
,
NtCurrentTeb
()
->
Peb
->
ImageBaseAddress
,
NULL
,
0
,
NULL
,
0
,
FALSE
)))
...
...
dlls/winex11.drv/window.c
View file @
354e999c
...
...
@@ -2058,7 +2058,7 @@ HWND create_foreign_window( Display *display, Window xwin )
unsigned
int
nchildren
;
XWindowAttributes
attr
;
UINT
style
=
WS_CLIPCHILDREN
;
UNICODE_STRING
class_name
;
UNICODE_STRING
class_name
=
RTL_CONSTANT_STRING
(
classW
)
;
if
(
!
class_registered
)
{
...
...
@@ -2069,7 +2069,6 @@ HWND create_foreign_window( Display *display, Window xwin )
class
.
cbSize
=
sizeof
(
class
);
class
.
lpfnWndProc
=
client_foreign_window_proc
;
class
.
lpszClassName
=
classW
;
RtlInitUnicodeString
(
&
class_name
,
classW
);
if
(
!
NtUserRegisterClassExWOW
(
&
class
,
&
class_name
,
&
version
,
NULL
,
0
,
0
,
NULL
)
&&
RtlGetLastWin32Error
()
!=
ERROR_CLASS_ALREADY_EXISTS
)
{
...
...
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