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
efcb7344
Commit
efcb7344
authored
2 years ago
by
Zebediah Figura
Committed by
Alexandre Julliard
2 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set the window state thread description only if it's actually a new thread.
Fixes:
a2c03e23
parent
6a4d688f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
swapchain.c
dlls/wined3d/swapchain.c
+10
-5
No files found.
dlls/wined3d/swapchain.c
View file @
efcb7344
...
...
@@ -2200,8 +2200,6 @@ static DWORD WINAPI set_window_state_thread(void *ctx)
struct
wined3d_window_state
*
s
=
ctx
;
bool
filter
;
SetThreadDescription
(
GetCurrentThread
(),
L"wined3d_set_window_state"
);
filter
=
wined3d_filter_messages
(
s
->
window
,
TRUE
);
if
(
s
->
set_style
)
...
...
@@ -2229,11 +2227,18 @@ static void set_window_state(struct wined3d_window_state *s)
* position can potentially deadlock if that thread isn't processing
* messages. */
if
(
window_tid
==
tid
)
{
set_window_state_thread
(
s
);
else
if
(
!
(
thread
=
CreateThread
(
NULL
,
0
,
set_window_state_thread
,
s
,
0
,
NULL
)))
ERR
(
"Failed to create thread.
\n
"
);
else
}
else
if
((
thread
=
CreateThread
(
NULL
,
0
,
set_window_state_thread
,
s
,
0
,
NULL
)))
{
SetThreadDescription
(
thread
,
L"wined3d_set_window_state"
);
CloseHandle
(
thread
);
}
else
{
ERR
(
"Failed to create thread.
\n
"
);
}
}
HRESULT
wined3d_swapchain_state_setup_fullscreen
(
struct
wined3d_swapchain_state
*
state
,
...
...
This diff is collapsed.
Click to expand it.
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