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
e280527f
Commit
e280527f
authored
Aug 30, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Never attempt to create the window data from a different thread.
parent
c540c98d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
window.c
dlls/winex11.drv/window.c
+3
-2
No files found.
dlls/winex11.drv/window.c
View file @
e280527f
...
...
@@ -1149,8 +1149,7 @@ static Window get_owner_whole_window( HWND owner, BOOL force_managed )
if
(
!
(
data
=
X11DRV_get_win_data
(
owner
)))
{
if
(
GetWindowThreadProcessId
(
owner
,
NULL
)
!=
GetCurrentThreadId
()
||
!
(
data
=
X11DRV_create_win_data
(
owner
)))
if
(
!
(
data
=
X11DRV_create_win_data
(
owner
)))
return
(
Window
)
GetPropA
(
owner
,
whole_window_prop
);
}
else
if
(
!
data
->
managed
&&
force_managed
)
/* make it managed */
...
...
@@ -2001,6 +2000,8 @@ struct x11drv_win_data *X11DRV_create_win_data( HWND hwnd )
/* don't create win data for HWND_MESSAGE windows */
if
(
parent
!=
GetDesktopWindow
()
&&
!
GetAncestor
(
parent
,
GA_PARENT
))
return
NULL
;
if
(
GetWindowThreadProcessId
(
hwnd
,
NULL
)
!=
GetCurrentThreadId
())
return
NULL
;
display
=
thread_init_display
();
if
(
!
(
data
=
alloc_win_data
(
display
,
hwnd
)))
return
NULL
;
...
...
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