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
7a039ebb
Commit
7a039ebb
authored
Feb 20, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Always return an empty list from SetupDiGetClassDevs.
parent
939e8e4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
26 deletions
+6
-26
devinst.c
dlls/setupapi/devinst.c
+6
-26
No files found.
dlls/setupapi/devinst.c
View file @
7a039ebb
...
...
@@ -648,7 +648,7 @@ SetupDiCreateDeviceInfoListExA(const GUID *ClassGuid,
* with this list.
* hwndParent [I] hwnd needed for interface related actions.
* MachineName [I] name of machine to create emtpy DeviceInfoSet list, if NULL
* local reg
e
stry will be used.
* local reg
i
stry will be used.
* Reserved [I] must be NULL
*
* RETURNS
...
...
@@ -772,6 +772,7 @@ BOOL WINAPI SetupDiEnumDeviceInfo(
if
(
info
->
cbSize
<
sizeof
(
*
info
))
return
FALSE
;
SetLastError
(
ERROR_NO_MORE_ITEMS
);
return
FALSE
;
}
...
...
@@ -1008,32 +1009,11 @@ HDEVINFO WINAPI SetupDiGetClassDevsW(
HWND
parent
,
DWORD
flags
)
{
HDEVINFO
ret
=
(
HDEVINFO
)
INVALID_HANDLE_VALUE
;
TRACE
(
"%s %s %p 0x%08x
\n
"
,
debugstr_guid
(
class
),
debugstr_w
(
enumstr
),
parent
,
flags
)
;
TRACE
(
"%s %s %p 0x%08x
\n
"
,
debugstr_guid
(
class
),
debugstr_w
(
enumstr
),
parent
,
flags
);
if
(
flags
&
DIGCF_DEVICEINTERFACE
)
{
if
(
!
class
)
SetLastError
(
ERROR_INVALID_PARAMETER
);
else
{
/* WinXP always succeeds, returns empty list for unknown classes */
FIXME
(
": returning empty list
\n
"
);
ret
=
SetupDiCreateDeviceInfoList
(
class
,
parent
);
}
}
else
if
(
enumstr
)
FIXME
(
": unimplemented for enumerator strings (%s)
\n
"
,
debugstr_w
(
enumstr
));
else
if
(
flags
&
DIGCF_ALLCLASSES
)
FIXME
(
": unimplemented for DIGCF_ALLCLASSES
\n
"
);
else
{
FIXME
(
"(%s): stub
\n
"
,
debugstr_guid
(
class
));
}
return
ret
;
/* WinXP always succeeds, returns empty list for unknown classes */
FIXME
(
"returning empty list
\n
"
);
return
SetupDiCreateDeviceInfoList
(
class
,
parent
);
}
/***********************************************************************
...
...
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