Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b58cab40
Commit
b58cab40
authored
May 27, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
May 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Test to show cleanup should not be needed.
parent
37582055
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
devinst.c
dlls/setupapi/tests/devinst.c
+17
-0
No files found.
dlls/setupapi/tests/devinst.c
View file @
b58cab40
...
...
@@ -367,6 +367,12 @@ static void testCreateDeviceInfo(void)
{
BOOL
ret
;
HDEVINFO
set
;
HKEY
key
;
LONG
res
;
static
const
WCHAR
bogus
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'S'
,
'e'
,
't'
,
'\\'
,
'E'
,
'n'
,
'u'
,
'm'
,
'\\'
,
'R'
,
'o'
,
'o'
,
't'
,
'\\'
,
'L'
,
'E'
,
'G'
,
'A'
,
'C'
,
'Y'
,
'_'
,
'B'
,
'O'
,
'G'
,
'U'
,
'S'
,
0
};
if
(
!
pSetupDiCreateDeviceInfoList
||
!
pSetupDiEnumDeviceInfo
||
!
pSetupDiDestroyDeviceInfoList
||
!
pSetupDiCreateDeviceInfoA
)
...
...
@@ -452,6 +458,17 @@ static void testCreateDeviceInfo(void)
"SetupDiEnumDeviceInfo failed: %08x
\n
"
,
GetLastError
());
pSetupDiDestroyDeviceInfoList
(
set
);
}
res
=
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
bogus
,
&
key
);
todo_wine
ok
(
res
==
ERROR_FILE_NOT_FOUND
,
"Expected key to not exist
\n
"
);
/* FIXME: Remove when Wine is fixed */
if
(
res
==
ERROR_SUCCESS
)
{
/* Wine doesn't delete the information currently */
trace
(
"We are most likely on Wine
\n
"
);
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
bogus
);
}
}
static
void
testGetDeviceInstanceId
(
void
)
...
...
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