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
0d39a07e
Commit
0d39a07e
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: Don't require caller to pass a SP_DEVINFO_DATA pointer to SETUPDI_AddDeviceToSet.
parent
22724c2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
devinst.c
dlls/setupapi/devinst.c
+9
-9
No files found.
dlls/setupapi/devinst.c
View file @
0d39a07e
...
...
@@ -518,16 +518,18 @@ static BOOL SETUPDI_AddDeviceToSet(struct DeviceInfoSet *set,
if
(
set
->
devices
)
{
WCHAR
classGuidStr
[
39
];
SP_DEVINFO_DATA
*
DeviceInfoData
=
&
set
->
devices
[
set
->
cDevices
++
];
*
dev
=
&
set
->
devices
[
set
->
cDevices
++
];
(
*
dev
)
->
cbSize
=
sizeof
(
SP_DEVINFO_DATA
);
memcpy
(
&
(
*
dev
)
->
ClassGuid
,
guid
,
sizeof
(
GUID
));
(
*
dev
)
->
DevInst
=
devInst
;
(
*
dev
)
->
Reserved
=
(
ULONG_PTR
)
devInfo
;
DeviceInfoData
->
cbSize
=
sizeof
(
SP_DEVINFO_DATA
);
memcpy
(
&
DeviceInfoData
->
ClassGuid
,
guid
,
sizeof
(
GUID
));
DeviceInfoData
->
DevInst
=
devInst
;
DeviceInfoData
->
Reserved
=
(
ULONG_PTR
)
devInfo
;
SETUPDI_GuidToString
(
guid
,
classGuidStr
);
SetupDiSetDeviceRegistryPropertyW
((
HDEVINFO
)
set
,
*
dev
,
SPDRP_CLASSGUID
,
(
const
BYTE
*
)
classGuidStr
,
DeviceInfoData
,
SPDRP_CLASSGUID
,
(
const
BYTE
*
)
classGuidStr
,
lstrlenW
(
classGuidStr
)
*
sizeof
(
WCHAR
));
if
(
dev
)
*
dev
=
DeviceInfoData
;
ret
=
TRUE
;
}
else
...
...
@@ -2090,12 +2092,10 @@ static void SETUPDI_EnumerateMatchingDevices(HDEVINFO DeviceInfoSet,
*
sizeof
(
WCHAR
));
if
(
instanceId
)
{
SP_DEVINFO_DATA
*
dev
;
sprintfW
(
instanceId
,
fmt
,
parent
,
subKeyName
);
SETUPDI_AddDeviceToSet
(
set
,
&
deviceClass
,
0
/* FIXME: DevInst */
,
instanceId
,
FALSE
,
&
dev
);
FALSE
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
instanceId
);
}
}
...
...
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