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
5cd4cbc4
Commit
5cd4cbc4
authored
Jun 11, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Fix some test failures on W2K.
parent
189603a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
devinst.c
dlls/setupapi/tests/devinst.c
+16
-6
No files found.
dlls/setupapi/tests/devinst.c
View file @
5cd4cbc4
...
...
@@ -814,6 +814,8 @@ static void testGetDeviceInterfaceDetail(void)
{
static
const
char
path
[]
=
"
\\\\
?
\\
root#legacy_bogus#0000#{6a55b5a4-3f65-11db-b704-0011955c2bdb}"
;
static
const
char
path_w2k
[]
=
"
\\\\
?
\\
root#legacy_bogus#0000#{6a55b5a4-3f65-11db-b704-0011955c2bdb}
\\
"
;
LPBYTE
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
SP_DEVICE_INTERFACE_DETAIL_DATA_A
*
detail
=
(
SP_DEVICE_INTERFACE_DETAIL_DATA_A
*
)
buf
;
...
...
@@ -845,14 +847,19 @@ static void testGetDeviceInterfaceDetail(void)
size
,
&
size
,
NULL
);
ok
(
ret
,
"SetupDiGetDeviceInterfaceDetailA failed: %d
\n
"
,
GetLastError
());
ok
(
!
lstrcmpiA
(
path
,
detail
->
DevicePath
),
"Unexpected path %s
\n
"
,
detail
->
DevicePath
);
ok
(
!
lstrcmpiA
(
path
,
detail
->
DevicePath
)
||
!
lstrcmpiA
(
path_w2k
,
detail
->
DevicePath
),
"Unexpected path %s
\n
"
,
detail
->
DevicePath
);
/* Check SetupDiGetDeviceInterfaceDetailW */
if
(
pSetupDiGetDeviceInterfaceDetailW
)
{
ret
=
pSetupDiGetDeviceInterfaceDetailW
(
set
,
&
interfaceData
,
NULL
,
0
,
&
size
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"Expected ERROR_INSUFFICIENT_BUFFER, got error code: %d
\n
"
,
GetLastError
());
ok
(
expectedsize
==
size
,
"SetupDiGetDeviceInterfaceDetailW returned wrong reqsize: expected %d, got %d
\n
"
,
expectedsize
,
size
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"Expected ERROR_INSUFFICIENT_BUFFER, got error code: %d
\n
"
,
GetLastError
());
ok
(
expectedsize
==
size
||
(
expectedsize
+
sizeof
(
WCHAR
))
==
size
/* W2K adds a backslash */
,
"SetupDiGetDeviceInterfaceDetailW returned wrong reqsize, got %d
\n
"
,
size
);
}
else
skip
(
"SetupDiGetDeviceInterfaceDetailW is not available
\n
"
);
...
...
@@ -1097,6 +1104,8 @@ static void testRegisterAndGetDetail(void)
{
static
const
char
path
[]
=
"
\\\\
?
\\
root#legacy_bogus#0000#{6a55b5a4-3f65-11db-b704-0011955c2bdb}"
;
static
const
char
path_w2k
[]
=
"
\\\\
?
\\
root#legacy_bogus#0000#{6a55b5a4-3f65-11db-b704-0011955c2bdb}
\\
"
;
PSP_DEVICE_INTERFACE_DETAIL_DATA_A
detail
=
NULL
;
detail
=
(
PSP_DEVICE_INTERFACE_DETAIL_DATA_A
)
HeapAlloc
(
GetProcessHeap
(),
0
,
dwSize
);
...
...
@@ -1111,8 +1120,9 @@ static void testRegisterAndGetDetail(void)
* as all the tests are cleaned up correctly this has to be (or should be) fixed
*/
todo_wine
ok
(
!
lstrcmpiA
(
path
,
detail
->
DevicePath
),
"Unexpected path %s
\n
"
,
detail
->
DevicePath
);
ok
(
!
lstrcmpiA
(
path
,
detail
->
DevicePath
)
||
!
lstrcmpiA
(
path_w2k
,
detail
->
DevicePath
),
"Unexpected path %s
\n
"
,
detail
->
DevicePath
);
HeapFree
(
GetProcessHeap
(),
0
,
detail
);
}
}
...
...
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