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
79f3573d
Commit
79f3573d
authored
Apr 22, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
May 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Remove now unnecessary reset_display_manager_ctx.
parent
64a7ca75
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
16 deletions
+7
-16
sysparams.c
dlls/win32u/sysparams.c
+7
-16
No files found.
dlls/win32u/sysparams.c
View file @
79f3573d
...
@@ -1485,21 +1485,6 @@ static const struct gdi_device_manager device_manager =
...
@@ -1485,21 +1485,6 @@ static const struct gdi_device_manager device_manager =
add_modes
,
add_modes
,
};
};
static
void
reset_display_manager_ctx
(
struct
device_manager_ctx
*
ctx
)
{
HANDLE
mutex
=
ctx
->
mutex
;
if
(
ctx
->
source_key
)
{
NtClose
(
ctx
->
source_key
);
last_query_display_time
=
0
;
}
if
(
ctx
->
gpu_count
)
cleanup_devices
();
memset
(
ctx
,
0
,
sizeof
(
*
ctx
)
);
if
((
ctx
->
mutex
=
mutex
))
prepare_devices
();
}
static
void
release_display_manager_ctx
(
struct
device_manager_ctx
*
ctx
)
static
void
release_display_manager_ctx
(
struct
device_manager_ctx
*
ctx
)
{
{
if
(
ctx
->
mutex
)
if
(
ctx
->
mutex
)
...
@@ -1508,7 +1493,13 @@ static void release_display_manager_ctx( struct device_manager_ctx *ctx )
...
@@ -1508,7 +1493,13 @@ static void release_display_manager_ctx( struct device_manager_ctx *ctx )
release_display_device_init_mutex
(
ctx
->
mutex
);
release_display_device_init_mutex
(
ctx
->
mutex
);
ctx
->
mutex
=
0
;
ctx
->
mutex
=
0
;
}
}
reset_display_manager_ctx
(
ctx
);
if
(
ctx
->
source_key
)
{
NtClose
(
ctx
->
source_key
);
last_query_display_time
=
0
;
}
if
(
ctx
->
gpu_count
)
cleanup_devices
();
}
}
static
void
clear_display_devices
(
void
)
static
void
clear_display_devices
(
void
)
...
...
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