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
1c25cc09
Commit
1c25cc09
authored
May 22, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Implement SetupDiInstallDriverFiles().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e5346c59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
2 deletions
+43
-2
devinst.c
dlls/setupapi/devinst.c
+42
-1
setupapi.spec
dlls/setupapi/setupapi.spec
+1
-1
No files found.
dlls/setupapi/devinst.c
View file @
1c25cc09
...
...
@@ -3674,9 +3674,10 @@ BOOL WINAPI SetupDiCallClassInstaller(DI_FUNCTION function, HDEVINFO devinfo, SP
return
SetupDiSelectBestCompatDrv
(
devinfo
,
device_data
);
case
DIF_REGISTER_COINSTALLERS
:
return
SetupDiRegisterCoDeviceInstallers
(
devinfo
,
device_data
);
case
DIF_INSTALLDEVICEFILES
:
return
SetupDiInstallDriverFiles
(
devinfo
,
device_data
);
case
DIF_FINISHINSTALL_ACTION
:
case
DIF_INSTALLDEVICE
:
case
DIF_INSTALLDEVICEFILES
:
case
DIF_INSTALLINTERFACES
:
case
DIF_PROPERTYCHANGE
:
case
DIF_SELECTDEVICE
:
...
...
@@ -4552,3 +4553,43 @@ BOOL WINAPI SetupDiSelectBestCompatDrv(HDEVINFO devinfo, SP_DEVINFO_DATA *device
return
TRUE
;
}
/***********************************************************************
* SetupDiInstallDriverFiles (SETUPAPI.@)
*/
BOOL
WINAPI
SetupDiInstallDriverFiles
(
HDEVINFO
devinfo
,
SP_DEVINFO_DATA
*
device_data
)
{
WCHAR
section
[
LINE_LEN
],
section_ext
[
LINE_LEN
];
struct
device
*
device
;
struct
driver
*
driver
;
void
*
callback_ctx
;
INFCONTEXT
ctx
;
HINF
hinf
;
TRACE
(
"devinfo %p, device_data %p.
\n
"
,
devinfo
,
device_data
);
if
(
!
(
device
=
get_device
(
devinfo
,
device_data
)))
return
FALSE
;
if
(
!
(
driver
=
device
->
selected_driver
))
{
ERR
(
"No driver selected for device %p.
\n
"
,
devinfo
);
SetLastError
(
ERROR_NO_DRIVER_SELECTED
);
return
FALSE
;
}
if
((
hinf
=
SetupOpenInfFileW
(
driver
->
inf_path
,
NULL
,
INF_STYLE_WIN4
,
NULL
))
==
INVALID_HANDLE_VALUE
)
return
FALSE
;
SetupFindFirstLineW
(
hinf
,
driver
->
mfg_key
,
driver
->
description
,
&
ctx
);
SetupGetStringFieldW
(
&
ctx
,
1
,
section
,
ARRAY_SIZE
(
section
),
NULL
);
SetupDiGetActualSectionToInstallW
(
hinf
,
section
,
section_ext
,
ARRAY_SIZE
(
section_ext
),
NULL
,
NULL
);
callback_ctx
=
SetupInitDefaultQueueCallback
(
NULL
);
SetupInstallFromInfSectionW
(
NULL
,
hinf
,
section_ext
,
SPINST_FILES
,
NULL
,
NULL
,
SP_COPY_NEWER_ONLY
,
SetupDefaultQueueCallbackW
,
callback_ctx
,
NULL
,
NULL
);
SetupTermDefaultQueueCallback
(
callback_ctx
);
SetupCloseInfFile
(
hinf
);
return
TRUE
;
}
dlls/setupapi/setupapi.spec
View file @
1c25cc09
...
...
@@ -368,7 +368,7 @@
@ stdcall SetupDiInstallClassW(long wstr long ptr)
@ stub SetupDiInstallDevice
@ stdcall SetupDiInstallDeviceInterfaces(ptr ptr)
@ st
ub SetupDiInstallDriverFiles
@ st
dcall SetupDiInstallDriverFiles(ptr ptr)
@ stdcall SetupDiLoadClassIcon(ptr ptr ptr)
@ stub SetupDiMoveDuplicateDevice
@ stdcall SetupDiOpenClassRegKey(ptr long)
...
...
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