Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
9fa4a2af
Commit
9fa4a2af
authored
May 20, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Add a semi-stub implementation of SetupDiSelectBestCompatDrv().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
57c3ebec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
11 deletions
+26
-11
devinst.c
dlls/setupapi/devinst.c
+26
-0
stubs.c
dlls/setupapi/stubs.c
+0
-11
No files found.
dlls/setupapi/devinst.c
View file @
9fa4a2af
...
...
@@ -4325,3 +4325,29 @@ BOOL WINAPI SetupDiEnumDriverInfoA(HDEVINFO devinfo, SP_DEVINFO_DATA *device_dat
sizeof
(
driver_data
->
ProviderName
),
NULL
,
NULL
);
return
ret
;
}
/***********************************************************************
* SetupDiSelectBestCompatDrv (SETUPAPI.@)
*/
BOOL
WINAPI
SetupDiSelectBestCompatDrv
(
HDEVINFO
devinfo
,
SP_DEVINFO_DATA
*
device_data
)
{
struct
device
*
device
;
TRACE
(
"devinfo %p, device_data %p.
\n
"
,
devinfo
,
device_data
);
if
(
!
(
device
=
get_device
(
devinfo
,
device_data
)))
return
FALSE
;
if
(
!
device
->
driver_count
)
{
ERR
(
"No compatible drivers were enumerated for device %s.
\n
"
,
debugstr_w
(
device
->
instanceId
));
SetLastError
(
ERROR_NO_COMPAT_DRIVERS
);
return
FALSE
;
}
WARN
(
"Semi-stub, selecting the first available driver.
\n
"
);
device
->
selected_driver
=
&
device
->
drivers
[
0
];
return
TRUE
;
}
dlls/setupapi/stubs.c
View file @
9fa4a2af
...
...
@@ -621,17 +621,6 @@ BOOL WINAPI SetupDiLoadClassIcon(const GUID *ClassGuid, HICON *LargeIcon, PINT M
}
/***********************************************************************
* SetupDiSelectBestCompatDrv (SETUPAPI.@)
*/
BOOL
WINAPI
SetupDiSelectBestCompatDrv
(
HDEVINFO
DeviceInfoSet
,
PSP_DEVINFO_DATA
DeviceInfoData
)
{
FIXME
(
": stub %p, %p
\n
"
,
DeviceInfoSet
,
DeviceInfoData
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
/***********************************************************************
* SetupDiSetSelectedDevice (SETUPAPI.@)
*/
BOOL
WINAPI
SetupDiSetSelectedDevice
(
HDEVINFO
SetupDiSetSelectedDevice
,
PSP_DEVINFO_DATA
DeviceInfoData
)
...
...
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