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
2b27d9ba
Commit
2b27d9ba
authored
May 26, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
May 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Skip tests on win9x.
parent
d9b673f9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
devinst.c
dlls/setupapi/tests/devinst.c
+15
-1
No files found.
dlls/setupapi/tests/devinst.c
View file @
2b27d9ba
...
...
@@ -727,6 +727,7 @@ static void testDevRegKey(void)
'0'
,
'0'
,
'1'
,
'1'
,
'9'
,
'5'
,
'5'
,
'c'
,
'2'
,
'b'
,
'd'
,
'b'
,
'}'
,
0
};
BOOL
ret
;
HDEVINFO
set
;
HKEY
key
=
NULL
;
if
(
!
pSetupDiCreateDeviceInfoList
||
!
pSetupDiDestroyDeviceInfoList
||
!
pSetupDiCreateDeviceInfoA
||
!
pSetupDiOpenDevRegKey
||
...
...
@@ -736,12 +737,25 @@ static void testDevRegKey(void)
skip
(
"No SetupDiOpenDevRegKey
\n
"
);
return
;
}
/* Check if we are on win9x */
SetLastError
(
0xdeadbeef
);
key
=
pSetupDiCreateDevRegKeyW
(
NULL
,
NULL
,
0
,
0
,
0
,
NULL
,
NULL
);
if
(
key
==
INVALID_HANDLE_VALUE
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
skip
(
"We are on win9x where the tests introduce issues
\n
"
);
return
;
}
ok
(
key
==
INVALID_HANDLE_VALUE
,
"Expected INVALID_HANDLE_VALUE, got %p
\n
"
,
key
);
ok
(
GetLastError
()
==
ERROR_INVALID_HANDLE
,
"Expected ERROR_INVALID_HANDLE, got %08x
\n
"
,
GetLastError
());
set
=
pSetupDiCreateDeviceInfoList
(
&
guid
,
NULL
);
ok
(
set
!=
NULL
,
"SetupDiCreateDeviceInfoList failed: %d
\n
"
,
GetLastError
());
if
(
set
)
{
SP_DEVINFO_DATA
devInfo
=
{
sizeof
(
devInfo
),
{
0
}
};
HKEY
key
=
INVALID_HANDLE_VALUE
;
ret
=
pSetupDiCreateDeviceInfoA
(
set
,
"ROOT
\\
LEGACY_BOGUS
\\
0000"
,
&
guid
,
NULL
,
NULL
,
0
,
&
devInfo
);
...
...
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