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
ec02dde9
Commit
ec02dde9
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: Implement directory search in SetupDiBuildDriverInfoList().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d22e7d6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
devinst.c
dlls/setupapi/devinst.c
+27
-3
No files found.
dlls/setupapi/devinst.c
View file @
ec02dde9
...
...
@@ -101,6 +101,7 @@ static const WCHAR Phantom[] = {'P','h','a','n','t','o','m',0};
static
const
WCHAR
SymbolicLink
[]
=
{
'S'
,
'y'
,
'm'
,
'b'
,
'o'
,
'l'
,
'i'
,
'c'
,
'L'
,
'i'
,
'n'
,
'k'
,
0
};
static
const
WCHAR
Control
[]
=
{
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
0
};
static
const
WCHAR
Linked
[]
=
{
'L'
,
'i'
,
'n'
,
'k'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
backslashW
[]
=
{
'\\'
,
0
};
static
const
WCHAR
emptyW
[]
=
{
0
};
struct
driver
...
...
@@ -4227,9 +4228,32 @@ BOOL WINAPI SetupDiBuildDriverInfoList(HDEVINFO devinfo, SP_DEVINFO_DATA *device
}
else
{
FIXME
(
"Searching in a directory is not yet implemented.
\n
"
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
static
const
WCHAR
default_path
[]
=
{
'C'
,
':'
,
'/'
,
'w'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'/'
,
'i'
,
'n'
,
'f'
,
0
};
static
const
WCHAR
wildcardW
[]
=
{
'*'
,
0
};
WCHAR
dir
[
MAX_PATH
],
file
[
MAX_PATH
];
WIN32_FIND_DATAW
find_data
;
HANDLE
find_handle
;
if
(
device
->
params
.
DriverPath
[
0
])
strcpyW
(
dir
,
device
->
params
.
DriverPath
);
else
strcpyW
(
dir
,
default_path
);
strcatW
(
dir
,
backslashW
);
strcatW
(
dir
,
wildcardW
);
TRACE
(
"Searching for drivers in %s.
\n
"
,
debugstr_w
(
dir
));
if
((
find_handle
=
FindFirstFileW
(
dir
,
&
find_data
))
!=
INVALID_HANDLE_VALUE
)
{
do
{
strcpyW
(
file
,
dir
);
strcpyW
(
file
+
strlenW
(
file
)
-
1
,
find_data
.
cFileName
);
enum_compat_drivers_from_file
(
device
,
file
);
}
while
(
FindNextFileW
(
find_handle
,
&
find_data
));
FindClose
(
find_handle
);
}
}
return
TRUE
;
...
...
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