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
82e1830f
Commit
82e1830f
authored
Oct 05, 2015
by
Hugh McMaster
Committed by
Alexandre Julliard
Oct 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32/tests: Delete WineTest registry key when tests are complete.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
parent
efb1b16d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
store.c
dlls/crypt32/tests/store.c
+31
-0
No files found.
dlls/crypt32/tests/store.c
View file @
82e1830f
...
...
@@ -2203,6 +2203,35 @@ static const BYTE serializedStoreWithCertAndHash[] = {
0xff
,
0x04
,
0x08
,
0x30
,
0x06
,
0x01
,
0x01
,
0xff
,
0x02
,
0x01
,
0x01
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
};
static
void
delete_test_key
(
void
)
{
HKEY
root_key
,
test_key
;
static
const
WCHAR
SysCertW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'C'
,
'e'
,
'r'
,
't'
,
'i'
,
'f'
,
'i'
,
'c'
,
'a'
,
't'
,
'e'
,
's'
,
0
};
static
const
WCHAR
WineTestW
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
'T'
,
'e'
,
's'
,
't'
,
0
};
WCHAR
subkey_name
[
32
];
DWORD
num_subkeys
,
subkey_name_len
;
int
idx
;
if
(
RegOpenKeyExW
(
HKEY_CURRENT_USER
,
SysCertW
,
0
,
KEY_READ
,
&
root_key
))
return
;
if
(
RegOpenKeyExW
(
root_key
,
WineTestW
,
0
,
KEY_READ
,
&
test_key
))
{
RegCloseKey
(
root_key
);
return
;
}
RegQueryInfoKeyW
(
test_key
,
NULL
,
NULL
,
NULL
,
&
num_subkeys
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
for
(
idx
=
num_subkeys
;
idx
--
>
0
;)
{
subkey_name_len
=
sizeof
(
subkey_name
)
/
sizeof
(
WCHAR
);
RegEnumKeyExW
(
test_key
,
idx
,
subkey_name
,
&
subkey_name_len
,
NULL
,
NULL
,
NULL
,
NULL
);
RegDeleteKeyW
(
test_key
,
subkey_name
);
}
RegCloseKey
(
test_key
);
RegDeleteKeyW
(
root_key
,
WineTestW
);
RegCloseKey
(
root_key
);
}
static
void
testAddCertificateLink
(
void
)
{
BOOL
ret
;
...
...
@@ -2499,6 +2528,8 @@ static void testAddCertificateLink(void)
CertFreeCertificateContext
(
source
);
CertCloseStore
(
store1
,
0
);
delete_test_key
();
}
static
DWORD
countCertsInStore
(
HCERTSTORE
store
)
...
...
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