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
55efd7cf
Commit
55efd7cf
authored
Sep 12, 2016
by
André Hentschel
Committed by
Alexandre Julliard
Sep 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Try to delete pre-existing key.
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
80fca2d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
devinst.c
dlls/setupapi/tests/devinst.c
+7
-3
No files found.
dlls/setupapi/tests/devinst.c
View file @
55efd7cf
...
...
@@ -451,7 +451,6 @@ static void testCreateDeviceInfo(void)
DWORD
i
;
static
GUID
deadbeef
=
{
0xdeadbeef
,
0xdead
,
0xbeef
,
{
0xde
,
0xad
,
0xbe
,
0xef
,
0xde
,
0xad
,
0xbe
,
0xef
}};
LONG
res
;
HKEY
key
;
static
const
WCHAR
bogus0000
[]
=
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'S'
,
'e'
,
't'
,
'\\'
,
...
...
@@ -459,8 +458,13 @@ static void testCreateDeviceInfo(void)
'L'
,
'E'
,
'G'
,
'A'
,
'C'
,
'Y'
,
'_'
,
'B'
,
'O'
,
'G'
,
'U'
,
'S'
,
'\\'
,
'0'
,
'0'
,
'0'
,
'0'
,
0
};
/* So we know we have a clean start */
res
=
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
bogus0000
,
&
key
);
ok
(
res
!=
ERROR_SUCCESS
,
"Expected key to not exist
\n
"
);
if
(
!
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
bogus0000
,
&
key
))
{
trace
(
"Expected LEGACY_BOGUS
\\
0000 key to not exist, will be removed now
\n
"
);
change_reg_permissions
(
bogus0000
);
ok
(
!
RegDeleteKeyW
(
HKEY_LOCAL_MACHINE
,
bogus0000
),
"Could not delete LEGACY_BOGUS
\\
0000 key
\n
"
);
}
/* No GUID given */
SetLastError
(
0xdeadbeef
);
ret
=
pSetupDiCreateDeviceInfoA
(
set
,
"Root
\\
LEGACY_BOGUS
\\
0000"
,
NULL
,
...
...
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