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
2487a353
Commit
2487a353
authored
Jun 15, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Avoid storing uninitialized data in the registry.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a20b997b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
devinst.c
dlls/setupapi/devinst.c
+2
-2
No files found.
dlls/setupapi/devinst.c
View file @
2487a353
...
...
@@ -5023,7 +5023,7 @@ BOOL WINAPI SetupDiInstallDevice(HDEVINFO devinfo, SP_DEVINFO_DATA *device_data)
static
const
WCHAR
dotservicesW
[]
=
{
'.'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
's'
,
0
};
static
const
WCHAR
addserviceW
[]
=
{
'A'
,
'd'
,
'd'
,
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
0
};
static
const
WCHAR
rootW
[]
=
{
'r'
,
'o'
,
'o'
,
't'
,
'\\'
,
0
};
WCHAR
section
[
LINE_LEN
],
section
_ext
[
LINE_LEN
],
subsection
[
LINE_LEN
],
inf_path
[
MAX_PATH
],
*
extptr
,
*
filepart
;
WCHAR
section_ext
[
LINE_LEN
],
subsection
[
LINE_LEN
],
inf_path
[
MAX_PATH
],
*
extptr
,
*
filepart
;
UINT
install_flags
=
SPINST_ALL
;
HKEY
driver_key
,
device_key
;
SC_HANDLE
manager
,
service
;
...
...
@@ -5112,7 +5112,7 @@ BOOL WINAPI SetupDiInstallDevice(HDEVINFO devinfo, SP_DEVINFO_DATA *device_data)
TRACE
(
"Copied INF file %s to %s.
\n
"
,
debugstr_w
(
driver
->
inf_path
),
debugstr_w
(
inf_path
));
RegSetValueExW
(
driver_key
,
infpathW
,
0
,
REG_SZ
,
(
BYTE
*
)
filepart
,
lstrlenW
(
filepart
)
*
sizeof
(
WCHAR
));
RegSetValueExW
(
driver_key
,
infsectionW
,
0
,
REG_SZ
,
(
BYTE
*
)
section
,
lstrlenW
(
section
)
*
sizeof
(
WCHAR
));
RegSetValueExW
(
driver_key
,
infsectionW
,
0
,
REG_SZ
,
(
BYTE
*
)
driver
->
section
,
lstrlenW
(
driver
->
section
)
*
sizeof
(
WCHAR
));
if
(
extptr
)
RegSetValueExW
(
driver_key
,
infsectionextW
,
0
,
REG_SZ
,
(
BYTE
*
)
extptr
,
lstrlenW
(
extptr
)
*
sizeof
(
WCHAR
));
...
...
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