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
230aab4c
Commit
230aab4c
authored
Dec 02, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Use helper for loading string from registry in monitor_load.
parent
5db76ad2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
provider.c
dlls/localspl/provider.c
+2
-8
No files found.
dlls/localspl/provider.c
View file @
230aab4c
...
@@ -835,14 +835,8 @@ static monitor_t * monitor_load(LPCWSTR name, LPWSTR dllname)
...
@@ -835,14 +835,8 @@ static monitor_t * monitor_load(LPCWSTR name, LPWSTR dllname)
lstrcatW
(
regroot
,
name
);
lstrcatW
(
regroot
,
name
);
if
(
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
regroot
,
&
hroot
)
==
ERROR_SUCCESS
)
{
if
(
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
regroot
,
&
hroot
)
==
ERROR_SUCCESS
)
{
/* Get the Driver from the Registry */
/* Get the Driver from the Registry */
if
(
driver
==
NULL
)
{
if
(
!
driver
)
DWORD
namesize
;
driver
=
reg_query_value
(
hroot
,
L"Driver"
);
if
(
RegQueryValueExW
(
hroot
,
L"Driver"
,
NULL
,
NULL
,
NULL
,
&
namesize
)
==
ERROR_SUCCESS
)
{
driver
=
malloc
(
namesize
);
RegQueryValueExW
(
hroot
,
L"Driver"
,
NULL
,
NULL
,
(
BYTE
*
)
driver
,
&
namesize
);
}
}
}
}
else
else
WARN
(
"%s not found
\n
"
,
debugstr_w
(
regroot
));
WARN
(
"%s not found
\n
"
,
debugstr_w
(
regroot
));
...
...
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