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
ed67a1f3
Commit
ed67a1f3
authored
May 04, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
May 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Clean up properly on win9x.
parent
d6f9de67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
devinst.c
dlls/setupapi/tests/devinst.c
+24
-1
No files found.
dlls/setupapi/tests/devinst.c
View file @
ed67a1f3
...
...
@@ -280,8 +280,14 @@ static void testInstallClass(void)
'{'
,
'6'
,
'a'
,
'5'
,
'5'
,
'b'
,
'5'
,
'a'
,
'4'
,
'-'
,
'3'
,
'f'
,
'6'
,
'5'
,
'-'
,
'1'
,
'1'
,
'd'
,
'b'
,
'-'
,
'b'
,
'7'
,
'0'
,
'4'
,
'-'
,
'0'
,
'0'
,
'1'
,
'1'
,
'9'
,
'5'
,
'5'
,
'c'
,
'2'
,
'b'
,
'd'
,
'b'
,
'}'
,
0
};
static
const
CHAR
classKey_win9x
[]
=
"System
\\
CurrentControlSet
\\
Services
\\
Class
\\
"
"{6a55b5a4-3f65-11db-b704-0011955c2bdb}"
;
static
const
CHAR
bogus_win9x
[]
=
"System
\\
CurrentControlSet
\\
Services
\\
Class
\\
Bogus"
;
char
tmpfile
[
MAX_PATH
];
BOOL
ret
;
HKEY
hkey
;
if
(
!
pSetupDiInstallClassA
)
{
...
...
@@ -305,9 +311,26 @@ static void testInstallClass(void)
ret
=
pSetupDiInstallClassA
(
NULL
,
tmpfile
+
2
,
0
,
NULL
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %08x
\n
"
,
GetLastError
());
/* The next call will succeed. Information is put into the registry but the
* location(s) is/are depending on the Windows version.
*/
ret
=
pSetupDiInstallClassA
(
NULL
,
tmpfile
,
0
,
NULL
);
ok
(
ret
,
"SetupDiInstallClassA failed: %08x
\n
"
,
GetLastError
());
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
classKey
);
if
(
!
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
classKey_win9x
,
&
hkey
))
{
/* We are on win9x */
RegCloseKey
(
hkey
);
ok
(
!
RegDeleteKeyA
(
HKEY_LOCAL_MACHINE
,
classKey_win9x
),
"Couldn't delete win9x classkey
\n
"
);
ok
(
!
RegDeleteKeyA
(
HKEY_LOCAL_MACHINE
,
bogus_win9x
),
"Couldn't delete win9x bogus services class
\n
"
);
}
else
{
/* NT4 and above */
ok
(
!
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
classKey
),
"Couldn't delete NT classkey
\n
"
);
}
DeleteFile
(
tmpfile
);
}
...
...
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