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
8e4c196c
Commit
8e4c196c
authored
Nov 27, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Remove unnecessary config_key lazy initializations.
parent
7175d885
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
sysparams.c
dlls/win32u/sysparams.c
+2
-6
No files found.
dlls/win32u/sysparams.c
View file @
8e4c196c
...
...
@@ -565,8 +565,7 @@ static BOOL adapter_get_registry_settings( const struct adapter *adapter, DEVMOD
mutex
=
get_display_device_init_mutex
();
if
(
!
config_key
&&
!
(
config_key
=
reg_open_key
(
NULL
,
config_keyW
,
sizeof
(
config_keyW
)
)))
ret
=
FALSE
;
else
if
(
!
(
hkey
=
reg_open_key
(
config_key
,
adapter
->
config_key
,
lstrlenW
(
adapter
->
config_key
)
*
sizeof
(
WCHAR
)
)))
ret
=
FALSE
;
if
(
!
(
hkey
=
reg_open_key
(
config_key
,
adapter
->
config_key
,
lstrlenW
(
adapter
->
config_key
)
*
sizeof
(
WCHAR
)
)))
ret
=
FALSE
;
else
{
ret
=
read_adapter_mode
(
hkey
,
ENUM_REGISTRY_SETTINGS
,
mode
);
...
...
@@ -585,7 +584,6 @@ static BOOL adapter_set_registry_settings( const struct adapter *adapter, const
mutex
=
get_display_device_init_mutex
();
if
(
!
config_key
&&
!
(
config_key
=
reg_open_key
(
NULL
,
config_keyW
,
sizeof
(
config_keyW
)
)))
ret
=
FALSE
;
if
(
!
(
hkey
=
reg_open_key
(
config_key
,
adapter
->
config_key
,
lstrlenW
(
adapter
->
config_key
)
*
sizeof
(
WCHAR
)
)))
ret
=
FALSE
;
else
{
...
...
@@ -614,8 +612,7 @@ static BOOL adapter_get_current_settings( const struct adapter *adapter, DEVMODE
mutex
=
get_display_device_init_mutex
();
if
(
!
config_key
&&
!
(
config_key
=
reg_open_key
(
NULL
,
config_keyW
,
sizeof
(
config_keyW
)
)))
ret
=
FALSE
;
else
if
(
!
(
hkey
=
reg_open_key
(
config_key
,
adapter
->
config_key
,
lstrlenW
(
adapter
->
config_key
)
*
sizeof
(
WCHAR
)
)))
ret
=
FALSE
;
if
(
!
(
hkey
=
reg_open_key
(
config_key
,
adapter
->
config_key
,
lstrlenW
(
adapter
->
config_key
)
*
sizeof
(
WCHAR
)
)))
ret
=
FALSE
;
else
{
ret
=
read_adapter_mode
(
hkey
,
ENUM_CURRENT_SETTINGS
,
mode
);
...
...
@@ -634,7 +631,6 @@ static BOOL adapter_set_current_settings( const struct adapter *adapter, const D
mutex
=
get_display_device_init_mutex
();
if
(
!
config_key
&&
!
(
config_key
=
reg_open_key
(
NULL
,
config_keyW
,
sizeof
(
config_keyW
)
)))
ret
=
FALSE
;
if
(
!
(
hkey
=
reg_open_key
(
config_key
,
adapter
->
config_key
,
lstrlenW
(
adapter
->
config_key
)
*
sizeof
(
WCHAR
)
)))
ret
=
FALSE
;
else
{
...
...
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