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
a4104c7c
Commit
a4104c7c
authored
Oct 16, 2018
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Avoid accessing the device after deactivation some more.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4cabe361
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
device.c
dlls/wined3d/device.c
+6
-2
No files found.
dlls/wined3d/device.c
View file @
a4104c7c
...
@@ -5315,9 +5315,13 @@ LRESULT device_process_message(struct wined3d_device *device, HWND window, BOOL
...
@@ -5315,9 +5315,13 @@ LRESULT device_process_message(struct wined3d_device *device, HWND window, BOOL
}
}
else
if
(
message
==
WM_ACTIVATEAPP
)
else
if
(
message
==
WM_ACTIVATEAPP
)
{
{
UINT
i
;
unsigned
int
i
=
device
->
swapchain_count
;
for
(
i
=
0
;
i
<
device
->
swapchain_count
;
i
++
)
/* Deactivating the implicit swapchain may cause the application
* (e.g. Deus Ex: GOTY) to destroy the device, so take care to
* deactivate the implicit swapchain last, and to avoid accessing the
* "device" pointer afterwards. */
while
(
i
--
)
wined3d_swapchain_activate
(
device
->
swapchains
[
i
],
wparam
);
wined3d_swapchain_activate
(
device
->
swapchains
[
i
],
wparam
);
}
}
else
if
(
message
==
WM_SYSCOMMAND
)
else
if
(
message
==
WM_SYSCOMMAND
)
...
...
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