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
df1c70ee
Commit
df1c70ee
authored
Apr 11, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Close device manager source key in write_source_to_registry.
parent
2f532567
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
sysparams.c
dlls/win32u/sysparams.c
+1
-6
No files found.
dlls/win32u/sysparams.c
View file @
df1c70ee
...
...
@@ -1280,6 +1280,7 @@ static BOOL write_source_to_registry( const struct source *source, HKEY *source_
NtClose
(
hkey
);
/* Following information is Wine specific, it doesn't really exist on Windows. */
if
(
*
source_key
)
NtClose
(
*
source_key
);
*
source_key
=
reg_create_ascii_key
(
NULL
,
source
->
path
,
REG_OPTION_VOLATILE
,
NULL
);
set_reg_ascii_value
(
*
source_key
,
"GPUID"
,
gpu
->
path
);
set_reg_value
(
*
source_key
,
state_flagsW
,
REG_DWORD
,
&
source
->
state_flags
,
...
...
@@ -1302,12 +1303,6 @@ static void add_source( const char *name, UINT state_flags, void *param )
TRACE
(
"name %s, state_flags %#x
\n
"
,
name
,
state_flags
);
if
(
ctx
->
source_key
)
{
NtClose
(
ctx
->
source_key
);
ctx
->
source_key
=
NULL
;
}
memset
(
&
ctx
->
source
,
0
,
sizeof
(
ctx
->
source
)
);
ctx
->
source
.
gpu
=
&
ctx
->
gpu
;
ctx
->
source
.
id
=
ctx
->
source_count
;
...
...
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