Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bae4ebb7
Commit
bae4ebb7
authored
Mar 28, 2008
by
Alexander Morozov
Committed by
Alexandre Julliard
Mar 31, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Add a check of "#" for interface subkey names.
parent
2ea559b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
devinst.c
dlls/setupapi/devinst.c
+17
-14
No files found.
dlls/setupapi/devinst.c
View file @
bae4ebb7
...
...
@@ -1986,21 +1986,24 @@ static void SETUPDI_AddDeviceInterfaces(SP_DEVINFO_DATA *dev, HKEY key,
HKEY
subKey
;
SP_DEVICE_INTERFACE_DATA
*
iface
=
NULL
;
/* The subkey name is the reference string, with a '#' prepended */
SETUPDI_AddInterfaceInstance
(
dev
,
interface
,
subKeyName
+
1
,
&
iface
);
l
=
RegOpenKeyExW
(
key
,
subKeyName
,
0
,
KEY_READ
,
&
subKey
);
if
(
!
l
)
if
(
*
subKeyName
==
'#'
)
{
WCHAR
symbolicLink
[
MAX_PATH
];
DWORD
dataType
;
len
=
sizeof
(
symbolicLink
);
l
=
RegQueryValueExW
(
subKey
,
SymbolicLink
,
NULL
,
&
dataType
,
(
BYTE
*
)
symbolicLink
,
&
len
);
if
(
!
l
&&
dataType
==
REG_SZ
)
SETUPDI_SetInterfaceSymbolicLink
(
iface
,
symbolicLink
);
RegCloseKey
(
subKey
);
/* The subkey name is the reference string, with a '#' prepended */
SETUPDI_AddInterfaceInstance
(
dev
,
interface
,
subKeyName
+
1
,
&
iface
);
l
=
RegOpenKeyExW
(
key
,
subKeyName
,
0
,
KEY_READ
,
&
subKey
);
if
(
!
l
)
{
WCHAR
symbolicLink
[
MAX_PATH
];
DWORD
dataType
;
len
=
sizeof
(
symbolicLink
);
l
=
RegQueryValueExW
(
subKey
,
SymbolicLink
,
NULL
,
&
dataType
,
(
BYTE
*
)
symbolicLink
,
&
len
);
if
(
!
l
&&
dataType
==
REG_SZ
)
SETUPDI_SetInterfaceSymbolicLink
(
iface
,
symbolicLink
);
RegCloseKey
(
subKey
);
}
}
/* Allow enumeration to continue */
l
=
ERROR_SUCCESS
;
...
...
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