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
7391352a
Commit
7391352a
authored
Nov 25, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Nov 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix a use after free (Coverity).
s is freed in set_window_state_thread().
parent
2146a442
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
swapchain.c
dlls/wined3d/swapchain.c
+2
-2
No files found.
dlls/wined3d/swapchain.c
View file @
7391352a
...
...
@@ -2199,8 +2199,6 @@ static void set_window_state(struct wined3d_window_state *s)
* messages. */
if
(
window_tid
==
tid
)
{
set_window_state_thread
(
s
);
/* Deus Ex: Game of the Year Edition removes WS_EX_TOPMOST after changing resolutions in
* exclusive fullscreen mode. Tests show that WS_EX_TOPMOST will be restored when a ~1.5s
* timer times out */
...
...
@@ -2211,6 +2209,8 @@ static void set_window_state(struct wined3d_window_state *s)
else
KillTimer
(
s
->
window
,
WINED3D_WINDOW_TOPMOST_TIMER_ID
);
}
set_window_state_thread
(
s
);
}
else
if
((
thread
=
CreateThread
(
NULL
,
0
,
set_window_state_thread
,
s
,
0
,
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