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
97cb5b9c
Commit
97cb5b9c
authored
May 03, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
May 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Remove duplicated foreign window class string constant.
parent
749574a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
window.c
dlls/winex11.drv/window.c
+2
-4
No files found.
dlls/winex11.drv/window.c
View file @
97cb5b9c
...
...
@@ -2171,7 +2171,6 @@ static struct x11drv_win_data *X11DRV_create_win_data( HWND hwnd, const RECT *wi
*/
HWND
create_foreign_window
(
Display
*
display
,
Window
xwin
)
{
static
const
WCHAR
classW
[]
=
{
'_'
,
'_'
,
'w'
,
'i'
,
'n'
,
'e'
,
'_'
,
'x'
,
'1'
,
'1'
,
'_'
,
'f'
,
'o'
,
'r'
,
'e'
,
'i'
,
'g'
,
'n'
,
'_'
,
'w'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
0
};
static
BOOL
class_registered
;
struct
x11drv_win_data
*
data
;
HWND
hwnd
,
parent
;
...
...
@@ -2181,7 +2180,7 @@ HWND create_foreign_window( Display *display, Window xwin )
unsigned
int
nchildren
;
XWindowAttributes
attr
;
UINT
style
=
WS_CLIPCHILDREN
;
UNICODE_STRING
class_name
=
RTL_CONSTANT_STRING
(
classW
);
UNICODE_STRING
class_name
=
RTL_CONSTANT_STRING
(
foreign_window_prop
);
if
(
!
class_registered
)
{
...
...
@@ -2191,7 +2190,7 @@ HWND create_foreign_window( Display *display, Window xwin )
memset
(
&
class
,
0
,
sizeof
(
class
)
);
class
.
cbSize
=
sizeof
(
class
);
class
.
lpfnWndProc
=
client_foreign_window_proc
;
class
.
lpszClassName
=
classW
;
class
.
lpszClassName
=
foreign_window_prop
;
if
(
!
NtUserRegisterClassExWOW
(
&
class
,
&
class_name
,
&
version
,
NULL
,
0
,
0
,
NULL
)
&&
RtlGetLastWin32Error
()
!=
ERROR_CLASS_ALREADY_EXISTS
)
{
...
...
@@ -2227,7 +2226,6 @@ HWND create_foreign_window( Display *display, Window xwin )
pos
.
y
=
attr
.
y
;
}
RtlInitUnicodeString
(
&
class_name
,
classW
);
hwnd
=
NtUserCreateWindowEx
(
0
,
&
class_name
,
&
class_name
,
NULL
,
style
,
pos
.
x
,
pos
.
y
,
attr
.
width
,
attr
.
height
,
parent
,
0
,
NULL
,
NULL
,
0
,
NULL
,
0
,
FALSE
);
...
...
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