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
00ef2e32
Commit
00ef2e32
authored
Sep 20, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Sep 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Save class GUID to registry when creating a device.
parent
8985a62a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
devinst.c
dlls/setupapi/devinst.c
+6
-0
No files found.
dlls/setupapi/devinst.c
View file @
00ef2e32
...
@@ -183,11 +183,17 @@ static BOOL SETUPDI_AddDeviceToSet(struct DeviceInfoSet *set,
...
@@ -183,11 +183,17 @@ static BOOL SETUPDI_AddDeviceToSet(struct DeviceInfoSet *set,
sizeof
(
SP_DEVINFO_DATA
));
sizeof
(
SP_DEVINFO_DATA
));
if
(
set
->
devices
)
if
(
set
->
devices
)
{
{
WCHAR
classGuidStr
[
39
];
*
dev
=
&
set
->
devices
[
set
->
cDevices
++
];
*
dev
=
&
set
->
devices
[
set
->
cDevices
++
];
(
*
dev
)
->
cbSize
=
sizeof
(
SP_DEVINFO_DATA
);
(
*
dev
)
->
cbSize
=
sizeof
(
SP_DEVINFO_DATA
);
memcpy
(
&
(
*
dev
)
->
ClassGuid
,
guid
,
sizeof
(
GUID
));
memcpy
(
&
(
*
dev
)
->
ClassGuid
,
guid
,
sizeof
(
GUID
));
(
*
dev
)
->
DevInst
=
devInst
;
(
*
dev
)
->
DevInst
=
devInst
;
(
*
dev
)
->
Reserved
=
(
ULONG_PTR
)
devInfo
;
(
*
dev
)
->
Reserved
=
(
ULONG_PTR
)
devInfo
;
SETUPDI_GuidToString
(
guid
,
classGuidStr
);
SetupDiSetDeviceRegistryPropertyW
((
HDEVINFO
)
set
,
*
dev
,
SPDRP_CLASSGUID
,
(
const
BYTE
*
)
classGuidStr
,
lstrlenW
(
classGuidStr
)
*
sizeof
(
WCHAR
));
ret
=
TRUE
;
ret
=
TRUE
;
}
}
else
else
...
...
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