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
732b968b
Commit
732b968b
authored
Oct 11, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Add a device ID member to DeviceInfo.
parent
0d39a07e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
devinst.c
dlls/setupapi/devinst.c
+5
-3
No files found.
dlls/setupapi/devinst.c
View file @
732b968b
...
...
@@ -127,6 +127,7 @@ struct DeviceInfo
struct
DeviceInfoSet
*
set
;
HKEY
key
;
BOOL
phantom
;
DWORD
devId
;
LPWSTR
instanceId
;
struct
list
interfaces
;
};
...
...
@@ -424,7 +425,7 @@ static HKEY SETUPDI_CreateDevKey(struct DeviceInfo *devInfo)
}
static
struct
DeviceInfo
*
SETUPDI_AllocateDeviceInfo
(
struct
DeviceInfoSet
*
set
,
LPCWSTR
instanceId
,
BOOL
phantom
)
DWORD
devId
,
LPCWSTR
instanceId
,
BOOL
phantom
)
{
struct
DeviceInfo
*
devInfo
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
DeviceInfo
));
...
...
@@ -432,6 +433,7 @@ static struct DeviceInfo *SETUPDI_AllocateDeviceInfo(struct DeviceInfoSet *set,
if
(
devInfo
)
{
devInfo
->
set
=
set
;
devInfo
->
devId
=
devId
;
devInfo
->
instanceId
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
instanceId
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
devInfo
->
instanceId
)
...
...
@@ -501,8 +503,8 @@ static BOOL SETUPDI_AddDeviceToSet(struct DeviceInfoSet *set,
SP_DEVINFO_DATA
**
dev
)
{
BOOL
ret
=
FALSE
;
struct
DeviceInfo
*
devInfo
=
SETUPDI_AllocateDeviceInfo
(
set
,
instanceId
,
phantom
);
struct
DeviceInfo
*
devInfo
=
SETUPDI_AllocateDeviceInfo
(
set
,
set
->
cDevices
,
instanceId
,
phantom
);
TRACE
(
"%p, %s, %d, %s, %d
\n
"
,
set
,
debugstr_guid
(
guid
),
devInst
,
debugstr_w
(
instanceId
),
phantom
);
...
...
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