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
e2f1f39b
Commit
e2f1f39b
authored
Oct 25, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Include enumerator string as part of device instance ID.
parent
e51f8490
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
devinst.c
dlls/setupapi/devinst.c
+6
-5
No files found.
dlls/setupapi/devinst.c
View file @
e2f1f39b
...
...
@@ -2176,16 +2176,17 @@ static void SETUPDI_EnumerateMatchingDeviceInstances(struct DeviceInfoSet *set,
if
((
flags
&
DIGCF_ALLCLASSES
)
||
IsEqualGUID
(
class
,
&
deviceClass
))
{
static
const
WCHAR
fmt
[]
=
{
'%'
,
's'
,
'\\'
,
'%'
,
's'
,
0
};
static
const
WCHAR
fmt
[]
=
{
'%'
,
's'
,
'\\'
,
'%'
,
's'
,
'\\'
,
'%'
,
's'
,
0
};
LPWSTR
instanceId
;
instanceId
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
deviceName
)
+
lstrlenW
(
deviceInstance
)
+
2
)
*
sizeof
(
WCHAR
));
(
lstrlenW
(
enumerator
)
+
lstrlenW
(
deviceName
)
+
lstrlenW
(
deviceInstance
)
+
3
)
*
sizeof
(
WCHAR
));
if
(
instanceId
)
{
sprintfW
(
instanceId
,
fmt
,
deviceName
,
deviceInstance
);
sprintfW
(
instanceId
,
fmt
,
enumerator
,
device
Name
,
device
Instance
);
SETUPDI_AddDeviceToSet
(
set
,
&
deviceClass
,
0
/* FIXME: DevInst */
,
instanceId
,
FALSE
,
NULL
);
...
...
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